Google Cloud
Serverless
starter
Serverless API with Firestore — Google Cloud Architecture Template
A fully serverless REST API using Cloud Functions behind API Gateway with Firestore as the datastore.
Why this architecture works
- Separate read and write functions scale independently and keep cold-start surface small.
- API Gateway handles auth and quota enforcement so functions contain only business logic.
- Firestore scales automatically with zero connection-pool management from functions.
- Function service accounts get scoped IAM roles, never broad project-level access.
- Secrets resolve from Secret Manager at runtime instead of plain environment variables.
What's inside (7 resources)
API Gateway
gcp-api-gateway
Function SA
gcp-iam
Read API Fn
gcp-cloud-functions
Write API Fn
gcp-cloud-functions
Firestore
gcp-firestore
Secret Manager
gcp-secret-manager
Cloud Monitoring
gcp-monitoring
From template to running infrastructure
- Open this template in the CloudForge visual designer (free account, no credit card).
- Customize resources, names, and connections on the drag-and-drop canvas — or ask Vani, the AI architect, to adapt it.
- Generate production-ready Terraform or Pulumi in one click.
- Review the plan diff and security scan, then deploy with human approval.