Skip to content
Google Cloud

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

Application Integration

Compute

google_compute_autoscaler

An 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.

Compute Engine
google_compute_instance

A Google Compute Engine VM. Priced per second by machine type, region, and license. Sustained-use discounts apply automatically.

Compute Engine
google_compute_instance_group

An 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.

Compute Engine
google_compute_instance_group_manager

A 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 Engine
google_compute_instance_template

An 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.

Compute Engine
google_compute_region_instance_group_manager

A regional (multi-zone) managed instance group, billed as the Compute Engine VMs it runs across zones. 3× e2-medium is ~$73/month.

Google Compute Engine
google_notebooks_instance

A managed JupyterLab notebook VM for data science. Priced at the underlying Compute Engine rate per hour, plus boot disk and any attached GPUs.

Vertex AI Workbench
google_vmwareengine_cluster

A 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.

Google Cloud VMware Engine

Containers

Database

google_alloydb_cluster

PostgreSQL-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 Cloud AlloyDB
google_alloydb_instance

A PostgreSQL-compatible instance within an AlloyDB cluster. Priced per vCPU-hour and per GB of memory-hour, plus separately-billed cluster storage.

AlloyDB for PostgreSQL
google_bigquery_dataset

A serverless data warehouse dataset. Two pricing models: on-demand ($6.25/TB scanned) or capacity-based (slot-hours).

BigQuery
google_bigtable_instance

Wide-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 Cloud Bigtable
google_dataflow_job

A managed Apache Beam job for streaming and batch data processing. Priced per worker-hour by machine type and tier, plus data processed.

Cloud Dataflow
google_firestore_database

A 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.

Cloud Firestore
google_memcache_instance

A managed Memcached cluster. Priced per node by vCPU-hour and memory GB-hour, multiplied across the node count.

Cloud Memorystore
google_redis_cluster

A horizontally-scalable, sharded Redis Cluster on Memorystore. Priced per shard-node-hour by capacity, multiplied across shards and replicas.

Cloud Memorystore
google_redis_instance

A managed Redis instance. Priced per GB-hour by service tier (Basic or Standard) and capacity.

Memorystore for Redis
google_spanner_instance

Globally-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 Cloud Spanner
google_sql_database_instance

A managed MySQL, PostgreSQL, or SQL Server database. Priced by tier, storage, and HA mode. Sustained-use discounts apply.

Cloud SQL

IAM

Machine Learning

Management

Messaging

Networking

google_compute_address

A reserved static IP address. Per-hour charge based on attachment state and IP version (IPv4 vs IPv6).

Compute Engine
google_compute_backend_service

A 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.

Cloud Load Balancing
google_compute_firewall

A 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.

Compute Engine
google_compute_forwarding_rule

A 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.

Cloud Load Balancing
google_compute_global_address

A 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 Engine
google_compute_global_forwarding_rule

A 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.

Cloud Load Balancing
google_compute_ha_vpn_gateway

A high-availability IPsec VPN gateway with a 99.99% SLA. Priced per tunnel-hour, plus standard egress on traffic leaving Google Cloud.

Cloud VPN
google_compute_health_check

A 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.

Cloud Load Balancing
google_compute_interconnect_attachment

A 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.

Cloud Interconnect
google_compute_network

A 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.

Compute Engine
google_compute_route

A 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.

Compute Engine
google_compute_router

A 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.

Compute Engine
google_compute_router_nat

Managed 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 Cloud Networking
google_compute_subnetwork

A 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.

Compute Engine
google_compute_target_http_proxy

A 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.

Cloud Load Balancing
google_compute_target_https_proxy

A 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.

Cloud Load Balancing
google_compute_url_map

A 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.

Cloud Load Balancing
google_compute_vpn_tunnel

An 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.

Cloud VPN
google_dns_managed_zone

A 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.

Cloud DNS
google_dns_policy

A 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.

Cloud DNS
google_dns_record_set

A 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.

Cloud DNS

Observability

Security

google_certificate_manager_certificate

TLS 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.

Certificate Manager
google_cloud_ids_endpoint

A managed intrusion detection endpoint built on Palo Alto threat engines. Priced per endpoint-hour plus per-GB of traffic inspected.

Cloud IDS
google_kms_crypto_key

Customer-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 Cloud KMS
google_kms_key_ring

A 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.

Cloud KMS
google_privateca_certificate_authority

A managed private certificate authority. Priced as a flat monthly CA fee by tier, plus a per-certificate issuance charge.

Certificate Authority Service
google_project_iam_binding

Grants 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.

Cloud IAM
google_secret_manager_secret

A managed secret with versioning and IAM access. $0.06/month per active secret version, plus per-access fees beyond the free tier.

Secret Manager
google_secret_manager_secret_version

A 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.

Secret Manager
google_storage_bucket_iam_binding

Grants 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.

Cloud Storage

Security & Identity

Serverless

Storage