Google Cloud Terraform Resources
Cost estimation reference for 52 Google Cloud resources supported by C3X. Each page covers pricing dimensions, Terraform examples, and optimization tips.
Analytics
google_bigquery_reservationDedicated BigQuery compute capacity (slots) for predictable query pricing. Priced per slot-hour by edition, billed for the reserved slot count.
google_composer_environmentManaged Apache Airflow. Composer 2: ~$455/month minimum (web server $73 + scheduler $73 + workers $25/CPU + Cloud SQL $73). Composer 3 introduces serverless workers. Often the priciest 'orchestration' bill.
google_dataproc_clusterManaged Spark, Hadoop, Flink, and Presto. Bills underlying Compute Engine VMs + $0.010/vCPU-hour Dataproc fee. Dataproc Serverless eliminates cluster management. Dataproc on GKE runs Spark on existing GKE.
google_dataproc_metastore_serviceA managed Hive metastore for data lakes. Priced as a flat hourly service fee by tier, billed continuously while the service runs.
google_looker_instanceA managed Looker BI platform instance. Priced per instance-hour by platform edition, billed continuously while the instance runs.
Application Integration
google_api_gateway_apiA managed gateway for serverless backends. Priced per million API calls, with a free tier and no always-on cost.
google_cloud_scheduler_jobA managed cron job that triggers HTTP, Pub/Sub, or App Engine targets on a schedule. Priced per job per month, with the first three jobs free.
google_workflows_workflowServerless orchestration that chains services and APIs. Priced per step executed, separating cheaper internal steps from pricier external HTTP calls.
Compute
google_compute_instanceA Google Compute Engine VM. Priced per second by machine type, region, and license. Sustained-use discounts apply automatically.
google_compute_instance_group_managerA managed instance group that runs and autoscales a fleet of identical VMs, billed as the Compute Engine instances. 3× e2-medium is ~$73/month.
google_compute_region_instance_group_managerA regional (multi-zone) managed instance group, billed as the Compute Engine VMs it runs across zones. 3× e2-medium is ~$73/month.
google_notebooks_instanceA managed JupyterLab notebook VM for data science. Priced at the underlying Compute Engine rate per hour, plus boot disk and any attached GPUs.
google_vmwareengine_clusterA dedicated VMware vSphere cluster running on Google Cloud. Priced per ESXi node-hour, with a multi-node minimum that makes this one of the largest standing costs.
Containers
google_artifact_registry_repositoryA managed registry for container images, Helm charts, language packages. $0.10/GB-month storage plus data transfer.
google_container_clusterA managed Kubernetes cluster on GKE. Two operating modes: Standard with per-cluster management fee, or Autopilot priced per pod.
google_container_node_poolCompute Engine worker nodes for a GKE cluster. Bills as the VMs it runs: node_count × machine_type. 3× e2-standard-4 is ~$294/month.
Database
google_alloydb_clusterPostgreSQL-compatible managed database with up to 4x faster queries than standard PG. CPU $0.06814/vCPU-hour + memory $0.00822/GB-hour. Storage $0.30/GB-month. Designed for OLTP and analytical workloads.
google_alloydb_instanceA PostgreSQL-compatible instance within an AlloyDB cluster. Priced per vCPU-hour and per GB of memory-hour, plus separately-billed cluster storage.
google_bigquery_datasetA serverless data warehouse dataset. Two pricing models: on-demand ($6.25/TB scanned) or capacity-based (slot-hours).
google_bigtable_instanceWide-column NoSQL for low-latency, high-throughput workloads. $0.65/node-hour (SSD) or $0.17/node-hour (HDD) plus storage. 3-node minimum production. Replication to another region doubles node cost.
google_dataflow_jobA managed Apache Beam job for streaming and batch data processing. Priced per worker-hour by machine type and tier, plus data processed.
google_firestore_databaseA serverless document database billed by reads, writes, deletes, and storage — no instances. 10M reads + 2M writes + 50 GB is ~$19/month, with a free daily tier.
google_memcache_instanceA managed Memcached cluster. Priced per node by vCPU-hour and memory GB-hour, multiplied across the node count.
google_redis_clusterA horizontally-scalable, sharded Redis Cluster on Memorystore. Priced per shard-node-hour by capacity, multiplied across shards and replicas.
google_redis_instanceA managed Redis instance. Priced per GB-hour by service tier (Basic or Standard) and capacity.
google_spanner_instanceGlobally-consistent, horizontally-scalable SQL database. $0.90/node-hour ($657/month) for regional, $3/node-hour for multi-region. Storage $0.30/GB-month regional, $0.50/GB-month multi-region. Processing Units offer 1/1000th node granularity.
google_sql_database_instanceA managed MySQL, PostgreSQL, or SQL Server database. Priced by tier, storage, and HA mode. Sustained-use discounts apply.
Machine Learning
google_vertex_ai_endpointManaged ML inference endpoint. Bills n1-standard-2 at $0.05/hour up to GPU-backed n1-highmem-32 at $5+/hour. Foundation model endpoints (Gemini, PaLM) bill per-token. Batch prediction available for offline workloads.
google_workbench_instanceA managed Jupyter notebook VM for Vertex AI, billed the underlying Compute Engine rate per hour. An e2-standard-4 is ~$98/month if left on — idle notebooks are the waste.
Messaging
google_cloud_tasks_queueManaged task queue for HTTP/gRPC targets. First 1M tasks/month free, then $0.40 per million tasks. No queue infrastructure to manage. Tasks call HTTP endpoints (Cloud Run, Cloud Functions, GKE services) with retry and rate limiting.
google_pubsub_topicA pub/sub topic for messaging. Priced per TB of message ingestion and delivery, with a generous free tier.
Networking
google_compute_addressA reserved static IP address. Per-hour charge based on attachment state and IP version (IPv4 vs IPv6).
google_compute_global_addressA reserved global static external IP. Charged ~$0.01/hour (~$7.30/month) only while reserved-but-unattached — attached to a load balancer it's free.
google_compute_ha_vpn_gatewayA high-availability IPsec VPN gateway with a 99.99% SLA. Priced per tunnel-hour, plus standard egress on traffic leaving Google Cloud.
google_compute_interconnect_attachmentA VLAN attachment connecting your VPC to a Cloud Interconnect, billed per hour by capacity. A 1 Gbps attachment is ~$75/month, plus egress over the link.
google_compute_router_natManaged NAT gateway for private GKE/VMs reaching the internet. $0.044/hour per gateway + $0.045/GB processed. Significantly cheaper than AWS NAT Gateway, and outbound to Google services is free via Private Google Access.
google_compute_vpn_tunnelAn IPsec VPN tunnel to an on-premises or peer network, billed per tunnel-hour. One tunnel is ~$37/month — and HA VPN needs two, plus egress over the tunnel.
google_dns_managed_zoneA managed DNS zone. Priced per zone per month plus per-query, both at low flat rates that scale with the number of zones and query volume.
Observability
Security
google_cloud_ids_endpointA managed intrusion detection endpoint built on Palo Alto threat engines. Priced per endpoint-hour plus per-GB of traffic inspected.
google_kms_crypto_keyCustomer-managed encryption keys. Software keys $0.06/key-month + $0.03/10K operations. HSM keys $1-$2.50/key-month + $0.03/10K operations. External Key Manager (EKM) keys also supported.
google_privateca_certificate_authorityA managed private certificate authority. Priced as a flat monthly CA fee by tier, plus a per-certificate issuance charge.
google_secret_manager_secretA managed secret with versioning and IAM access. $0.06/month per active secret version, plus per-access fees beyond the free tier.
Security & Identity
google_compute_security_policy_advancedA Cloud Armor (Enterprise tier) WAF/DDoS policy billed per policy plus per rule, plus request inspection. A policy with 5 rules is ~$10/month before requests.
google_kms_crypto_key_versionAn individual cryptographic key version in Cloud KMS, billed per active version per month (software ~$0.06; HSM more), plus per cryptographic operation.
Serverless
google_cloud_run_serviceA serverless container service. Billed by request count and per-request CPU/memory time. Generous free tier.
google_cloud_run_v2_serviceA fully managed container service that scales to zero. Priced per vCPU-second and GiB-second while requests are being handled, plus per-request fees.
google_cloudfunctions_functionA 1st-gen serverless function. Priced per invocation plus compute time (GHz-seconds and GB-seconds), with a generous free tier and scale to zero.
google_cloudfunctions2_functionA serverless function (2nd gen, Cloud Run-based). Billed per invocation, vCPU-time, memory-time, and outbound networking.
Storage
google_compute_diskA block storage disk for Compute Engine VMs. Priced per GB-month by disk type. Hyperdisk adds per-IOPS and per-throughput billing.
google_filestore_instanceManaged NFS file storage. Basic HDD at $0.16/GB-month (1 TB min). Basic SSD at $0.30/GB-month. Enterprise tier at $0.45/GB-month with regional replication. High Scale at $0.10/GB-month for parallel workloads.
google_storage_bucketObject storage on GCS. Priced by storage class, region, operations, and egress. Lifecycle rules can auto-tier cold data.