The Cloud Map
Every Google Cloud and outside service the site uses, what each one is for, how they connect, and how to keep the map current.
Why draw the map
When something breaks, the first question is "which part?" You cannot answer quickly if you do not know what the parts are. A cloud map is also the starting point for security (who can touch what), cost (what you pay for) and recovery (what you would need to rebuild).
The map
GitHub (code, pull requests, Actions: tests + speed checks)
│ push to main
▼
Cloud Build ── tests ── docker build ──► Artifact Registry (images)
│ deploy
▼
visitors ──► Cloud Run service (asia-south1)
│
┌──────────┼───────────────┬──────────────┐
▼ ▼ ▼ ▼
Firestore Cloud Storage Firebase Auth Outside services
(user data, (photos, (sign-in) (analytics, email,
Ravi OS) reports) payments, AI model)
▲
Cloud Scheduler ──► protected job on the site (health checks)
Each piece, in one line
| Piece | Job | If it fails |
|---|---|---|
| GitHub | Source of truth for code and content | No new changes; the live site keeps running |
| GitHub Actions | Tests and speed checks | Merges lose their gate; the live site keeps running |
| Cloud Build | Test, build, deploy | No new deploys; the live site keeps running |
| Artifact Registry | Stores images | New deploys and new instances cannot pull images |
| Cloud Run | Serves the site | The site is down |
| Firestore | User-created data | Sign-in-only and saved features fail; content pages still load |
| Cloud Storage | Photos, generated reports | Pictures missing; text still loads |
| Firebase Auth | Sign-in | Visitors cannot sign in; public pages still load |
| Cloud Scheduler | Starts the health check | Health history goes quiet |
| Outside services | Analytics, email, payments, AI | One feature each |
The right-hand column is the important one. A healthy design means only Cloud Run failing takes the whole site down. Everything else should cost one feature, not the site. When you add a dependency, write its row before you write its code.
Regions
Cloud Run, Artifact Registry and the build all sit in asia-south1 (Mumbai), close to most readers. Keeping the registry in the same region as the service makes image pulls fast. Some services, such as Firestore, choose their location once at creation and cannot move later, so that choice deserves thought on day one.
What is code and what is clicked
Some of the infrastructure is described in files in the repository:
cloudbuild.yaml: the build and deploy;Dockerfileand.dockerignore: the image;.github/workflows/: tests, speed checks and data refreshes;- Firestore security rules.
Some was set up once, by hand, in the console: the trigger, the Cloud Run service settings, the scheduler job, the buckets and the permissions. Clicked infrastructure is fine for a small site, as long as it is written down. A short list of "what was created by hand, with which settings" turns a rebuild from archaeology into a checklist.
Moving all of it into a tool such as Terraform makes sense when there is more than one environment, more than one person, or frequent change. For one service and one person, a written list plus gcloud describe output is a proportionate first step.
Keeping the map current
- Review it when a new service or outside dependency is added.
- Once a quarter, list what is actually there and compare:
gcloud run services list --project=PROJECT_ID
gcloud builds triggers list --project=PROJECT_ID
gcloud scheduler jobs list --project=PROJECT_ID --location=REGION
gcloud storage buckets list --project=PROJECT_ID
Anything in the output that is not on the map is either something you forgot or something you no longer need. Both are worth knowing.
Try it yourself
Draw your own map with the "if it fails" column. Find the rows where the honest answer is "the whole site goes down" when it should be "one feature stops". Each one is a design fix waiting to happen.