Following components are used
- IoT Core
- Pub/Sub
- Dataflow
- BigQuery
- Data Studio
- Cloud Function
- Cloud Firestore
- Create Service Account
- Assign the Editor 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