GCP Production Landing Zone
Tiered foundation, one apply — toggle on edge, compute, and data.
The Google Cloud sibling of the landing-zone pattern. Foundation (always on): a VPC with a single shared Cloud NAT, a CMEK key ring, logs + artifacts GCS buckets, least-privilege service accounts, a monitoring baseline, and Secret Manager. Flip enable_edge for Cloud DNS + a managed cert + Cloud Armor (WAF), enable_compute for a global HTTPS load balancer in front of Cloud Run, and enable_data for Cloud SQL + Memorystore. tofu validate is clean with everything off and everything on.
How it composes
Foundation (always on): the VPC uses a single Cloud NAT; the KMS key ring provides CMEK for the buckets; service accounts are least-privilege; monitoring exports logs and alerts. enable_edge adds Cloud DNS + a Google-managed cert + Cloud Armor; enable_compute bridges a global HTTPS load balancer to Cloud Run through a serverless NEG; enable_data adds a private-IP Cloud SQL instance + a Basic Memorystore Redis.
Composed root - live-tested 2026-08-04
This stack ships a single OpenTofu/Terraform root module that wires its modules together, statically validated with tofu validate. Set your domain and CIDRs in terraform.tfvars, then tofu init && tofu apply. We also ran the root itself through a real apply → verify → destroy cycle. Full stack (edge + compute + data tiers on): 51 resources applied against a real GCP project, all 14 tier outputs verified, and everything destroyed back to an empty state. The foundation-only variant passed the same cycle on 2026-08-03.
Modules in this stack
- 1GCP VPC Network Foundation✓ live-testedProduction VPC with subnets, secondary ranges, firewall rules, Cloud Router and Cloud NAT - the network base every GCP workload sits on.$59.00
- 2Cloud NAT Gateway✓ live-testedA regional Cloud Router and Cloud NAT gateway giving private, external-IP-less instances outbound internet access, with auto-allocated NAT IPs, all-subnet coverage, and logging on by default.$29.00
- 3Cloud KMS Keyring & Keys✓ live-testedKeyrings and rotation-enabled crypto keys with per-key IAM for CMEK across GCS, BigQuery, Cloud SQL and disks.$29.00
- 4Cloud Storage Bucket✓ live-testedHardened GCS bucket with uniform access, versioning, lifecycle/soft-delete policies, CMEK and least-privilege IAM.$0.00
- 5Service Accounts & IAM Bindings✓ live-testedService accounts with least-privilege project/resource IAM and optional Workload Identity Federation for keyless CI/CD (GitHub Actions).$29.00
- 6Cloud Monitoring, Alerting & Log Export✓ live-testedA self-contained observability bundle: a metric-threshold alert policy, a Monitoring dashboard, and a log-export sink to a locked-down GCS bucket with the sink writer-identity IAM grant wired in.$59.00
- 7Secret Manager Secrets✓ live-testedSecrets with versions, replication policy, rotation schedules, expiry and accessor IAM.$29.00
- 8Cloud DNS Zones & Records✓ live-testedPublic/private managed zones with record sets, DNSSEC, forwarding and peering configs.$0.00
- 9Certificate Manager (certificate map)✓ live-testedA Certificate Manager certificate map for external HTTPS load balancers, with an optional Google-managed certificate and DNS authorization provisioned when you supply a domain you control.$29.00
- 10Cloud Armor Security Policy (WAF)✓ live-testedA global Cloud Armor WAF policy with preconfigured OWASP SQLi and XSS rules enforcing by default, an optional per-client rate limit, and custom IP allow/deny rules - attachable to many backends.$59.00
- 11Cloud Run Service✓ live-testedCloud Run v2 service with autoscaling, secret and VPC egress wiring, custom domain and invoker IAM done right.$179.00
- 12Global External HTTPS Load Balancer✓ live-testedGlobal ALB with managed TLS certs, URL map, serverless/instance NEG backends, optional Cloud CDN and Cloud Armor policy.$59.00
- 13Cloud SQL (PostgreSQL/MySQL) HA Instance✓ live-testedRegional-HA Cloud SQL with private IP (PSA/PSC), automated backups, PITR, read replicas and IAM database auth.$179.00
- 14Memorystore Redis/Valkey✓ live-testedPrivate Memorystore instance or cluster (Redis or Valkey) with auth, TLS and maintenance policy on your VPC.$179.00