Google Cloud Terraform Resources
Cost estimation reference for 82 Google Cloud resources supported by C3X. Each page covers pricing dimensions, Terraform examples, and optimization tips.
Analytics
google_ bigquery_ jobA BigQuery job is free to submit. A query job bills per TiB of data scanned under on-demand pricing; load, copy, and export jobs are free. Bytes scanned is the cost.
google_ bigquery_ reservationDedicated BigQuery compute capacity (slots) for predictable query pricing. Priced per slot-hour by edition, billed for the reserved slot count.
google_ bigquery_ tableA BigQuery table is free to declare. Cost comes from the data stored in it per GB-month and the bytes queries scan against it, so schema and partitioning drive the real bill.
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_ autoscalerAn autoscaler is free. It varies the size of a managed instance group with demand. The cost is the VMs it runs, which floats between the min and max you set.
google_ compute_ instanceA Google Compute Engine VM. Priced per second by machine type, region, and license. Sustained-use discounts apply automatically.
google_ compute_ instance_ groupAn instance group is free. It manages a fleet of VMs from a template. The cost is the running VMs times the group's size, priced by machine type and disk.
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_ instance_ templateAn instance template is free. It is a blueprint for VMs. The cost is every VM a managed instance group stamps out from it, priced by machine type and disk.
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.
IAM
google_ project_ iam_ memberA project IAM binding is free. It grants a role to a member at the project level. It has no charge; it only enables access to resources that may cost money.
google_ service_ accountA service account is free. It is an identity for workloads to authenticate and be granted permissions. It has no charge and no cost drivers of its own.
google_ storage_ bucket_ iam_ memberA bucket IAM binding is free. It grants a role to a member on a Cloud Storage bucket. The cost is the bucket itself: its stored data, operations, and egress.
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.
Management
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_ subscriptionA Pub/Sub subscription is free to create. Cost comes from message throughput delivered, retained storage for unacked or replayable messages, and egress to the subscriber.
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_ backend_ serviceA backend service is free configuration. It binds a load balancer to its backends and their health checks. The Cloud Load Balancing charge lands on the forwarding rule plus data processed.
google_ compute_ firewallA VPC firewall rule is free. It allows or denies traffic to and from instances at no cost. The bill comes from the resources the rule protects and the traffic it permits.
google_ compute_ forwarding_ ruleA regional forwarding rule is where the Cloud Load Balancing charge lands. It bills an hourly rate per rule plus per-GB data processed, on top of the backends behind it.
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_ global_ forwarding_ ruleA global forwarding rule is where the global Cloud Load Balancing charge lands. It bills an hourly rate per rule plus per-GB data processed, in front of a global HTTP(S) or proxy load balancer.
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_ health_ checkA health check is free. It probes backends to decide which are eligible for traffic. The cost sits on the load balancer's forwarding rule and the backends it protects.
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_ networkA VPC network is free. The network, its routes, and internal traffic within a region cost nothing. The bill comes from the resources you run inside it and the traffic that leaves it.
google_ compute_ routeA VPC route is free. It tells traffic where to go within a network. The cost sits on the next hop it points at, such as a Cloud NAT gateway or a VM, and the egress it enables.
google_ compute_ routerA Cloud Router is free. It runs BGP to exchange dynamic routes at no charge. The cost lands on what it hosts, chiefly Cloud NAT, and on the VPN or Interconnect attachments it advertises.
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_ subnetworkA subnetwork is free. It carves a regional IP range out of a VPC, and the cost comes from the resources placed in it and the traffic they generate.
google_ compute_ target_ http_ proxyA target HTTP proxy is free. It connects a forwarding rule to a URL map for HTTP load balancing. The Cloud Load Balancing charge sits on the forwarding rule and data processed.
google_ compute_ target_ https_ proxyA target HTTPS proxy is free, and so are Google-managed SSL certificates. It terminates TLS and routes via a URL map. The Cloud Load Balancing charge sits on the forwarding rule and data processed.
google_ compute_ url_ mapA URL map is free. It routes requests by host and path to backend services. The Cloud Load Balancing charge sits on the forwarding rule and data processed.
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.
google_ dns_ policyA network-level Cloud DNS policy for inbound or outbound forwarding, alternative name servers, and query logging. The policy is free. Cost lives in Cloud DNS zones and queries and in the logging it can enable.
google_ dns_ record_ setA DNS record set is essentially free to define. Cloud DNS bills per managed zone per month and per million queries, so cost scales with zones and query volume, not with individual records.
Observability
Security
google_ certificate_ manager_ certificateTLS certificates for Google Cloud load balancers. Google-managed and self-managed certificates are free. Cost lives in the load balancer that serves them and, for private PKI, in Certificate Authority Service.
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_ kms_ key_ ringA KMS key ring is free. It is a regional container that groups crypto keys. The cost is on the keys inside it: active key versions and cryptographic operations.
google_ privateca_ certificate_ authorityA managed private certificate authority. Priced as a flat monthly CA fee by tier, plus a per-certificate issuance charge.
google_ project_ iam_ bindingGrants a role to a set of members at the project level, authoritatively for that role. IAM is always free. Cost lives in what the granted access lets members create and consume, and in the audit logs it can generate.
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.
google_ secret_ manager_ secret_ versionA secret version holds one payload of a secret. Secret Manager bills per active secret version per month and per 10,000 access operations, so cost tracks versions and how often they are read.
google_ storage_ bucket_ iam_ bindingGrants a role to members on a single Cloud Storage bucket, authoritatively for that role. IAM is free. Cost lives in the bucket's storage, operations, and egress, and a public grant can drive a large egress bill.
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_ attached_ diskAttaches an existing persistent disk to a Compute Engine instance. The attachment is free. Cost lives on the disk itself: provisioned capacity by disk type, plus snapshots and regional replication.
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.