Vintner
Infrastructure Templates

GCP Resources

Terraform modules for GCP — GKE, Cloud SQL, Memorystore, Firestore, and more.

GCP Resources

The GCP template set (infra/templates/vine/gcp/) provides cloud-native equivalents for all supported resource types.

Resources

FileResources Created
main.tfGKE cluster with Workload Identity, node pool
vpn.tfVPC network, subnets, Cloud NAT, Cloud Router
cloudsql.tfCloud SQL instances (PostgreSQL/MySQL), HA configuration
memorystore.tfMemorystore Redis instance
firestore.tfFirestore database, indexes
artifact-registry.tfArtifact Registry repository
cloud-storage.tfCloud Storage buckets
cloud-dns.tfCloud DNS managed zones, record sets
pubsub.tfPub/Sub topics and subscriptions
secret-manager.tfSecret Manager secrets
cloud-armor.tfCloud Armor security policies (WAF)

Modules

ModulePurpose
modules/gke/GKE cluster with Workload Identity, Autopilot option
modules/cloud-sql/Cloud SQL instance with HA, backups
modules/memorystore/Memorystore Redis
modules/firestore/Firestore database
modules/artifact-registry/Container image registry
modules/cloud-storage/GCS buckets
modules/cloud-armor/WAF policies
modules/cloud-dns/DNS zones and records
modules/pubsub/Pub/Sub topics
modules/secret-manager/Secrets
modules/vpc-network/VPC with subnets and Cloud NAT

Key Features

Workload Identity — GKE pods authenticate to GCP services via their Kubernetes service account, mapped to a GCP service account. No key files needed.

GKE Autopilot — Fully managed node provisioning. Google handles node scaling, patching, and resource optimization. Enabled via the enable_autopilot provider config toggle.

Cloud NAT — Managed NAT service for outbound internet access from private subnets. Uses Cloud Router for BGP routing.

On this page