Get startedGet started for free

Lab Intro: Integrate Cloud Run Functions with Firestore

1. Lab Intro: Integrate Cloud Run Functions with Firestore

You’ll now complete a lab on integrating Cloud Run functions with Firestore. In this lab, you develop a Cloud Run function to read and write a document to and from a Firestore database, and update that document by responding to create events in Firestore. You first set up Firestore by creating and initializing a Firebase project and database. You then write and deploy an HTTP function that creates a document entity in the Firestore database. Next, you write an event-driven function that is triggered when a document is created in the Firestore database. This function will update the data in the document that was originally created. Finally, you create a secret using Secret Manager, and then access that secret in your Cloud Run function.

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.