Lab Intro: Develop and Deploy Cloud Run Functions
1. Lab Intro: Develop and Deploy Cloud Run Functions
Let’s now do a lab to develop and deploy Cloud Run functions. In this lab, you create and deploy simple Cloud Run functions with the Google Cloud console and the gcloud CLI. You’ll first write a HTTP function to process and respond to HTTP requests, and deploy the function in Google Cloud console to Cloud Run functions. Next, you’ll write an event-driven function to respond to Cloud Storage events, when a file is copied to a Cloud Storage bucket. You’ll deploy this function using the gcloud CLI. When developing functions, it’s a good practice to develop unit tests for your function before deploying them. In this task in the lab, you write unit tests for your function and test them locally before deploying the function. Cloud Run functions support multiple deployed revisions of a function. In this task in the lab, you deploy more than one revision of a function and split traffic between the two revisions.2. Let's practice!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.