Following components are used
- Google Cloud Storage
- Pub/Sub
- Cloud Function
- Cloud Function
- Cloud Firestore
- Cloud Source Repository
- Cloud Build
- Google Container Registry
- Cloud Run
- Create Service Account
- Assign the Editor, Security Admin and Source Repository Administrator role.
- Download the key and renamed it as terraform-key.json
- Go to Firestore
- Select Native Mode
- Select a Location (e.g. United States)
- Click on "Create Database"
- Create Project
- Create SA, Assign the roles: Editor and download key as terraform.json
- export GOOGLE_CLOUD_KEYFILE_JSON=terraform-key.json
- terraform init
- terraform plan
- terraform apply
The complete detail about this repo is available in the please refer the blog