Lab Intro: Connect Cloud Run Functions
1. Lab Intro: Connect Cloud Run Functions
This is an optional lab that teaches you how to connect Cloud Run functions to resources in a VPC network. In this lab, you create a Serverless VPC Access connector to connect Cloud Run functions to a Memorystore for Redis instance, and to a VM instance in your VPC network. Memorystore is a fully managed in-memory data store service for Redis and Memcached on Google Cloud. You first create a Memorystore instance for Redis. Next, you create a Serverless VPC Access connector. A connector enables your Cloud Run functions to connect to resources in a VPC network. Then, you write and deploy an event-driven function that receives a message from a Pub/Sub topic and, using the connector, stores the message data in the Memorystore for Redis datastore. You also write an HTTP function to fetch the message data from the Redis datastore using the connector, and return the data in a HTTP response. You then create a VM with a simple web server in your network, and write an HTTP function to access the web server using the Serverless VPC Access connector.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.