Terraform GCP Provider 8.0: Load Balancer Shift & Key Deprecations

Alps Wang

Alps Wang

Oct 9, 2026 · 2 views

GCP IaC Evolution: Terraform Provider 8.0 Deep Dive

HashiCorp's release of Terraform Google Cloud Provider 8.0 marks a substantial update with significant implications for infrastructure management on Google Cloud. The shift in default load balancing from EXTERNAL to EXTERNAL_MANAGED for google_compute_backend_service and google_compute_global_forwarding_rule is a critical change. While this aligns with Google Cloud's move towards managed services and likely offers improved features and scalability, it introduces a potential breaking change for existing configurations. Teams relying on the Classic load balancer behavior must explicitly configure load_balancing_scheme = "EXTERNAL" to avoid unintended infrastructure modifications. This highlights the ongoing challenge of managing evolving cloud services with declarative IaC tools, where subtle default changes can have broad downstream effects. The removal of resources tied to retired Google Cloud services, such as IAP OAuth Admin APIs and older Notebooks instances, is a necessary housekeeping measure but requires proactive effort from users to migrate their configurations. The transition from lists to sets for order-insensitive attributes is a positive step towards stability, eliminating perpetual diffs and simplifying plan validation. However, understanding which attributes are affected and ensuring proper configuration updates is crucial to avoid unexpected plan outputs.

Key Points

  • Version 8.0 of the Terraform Google Cloud Provider is now generally available.
  • Default load balancing scheme for google_compute_backend_service and google_compute_global_forwarding_rule has shifted from EXTERNAL to EXTERNAL_MANAGED.
  • Users relying on Classic load balancers must explicitly set load_balancing_scheme = "EXTERNAL".
  • Resources linked to retired Google Cloud services (e.g., google_iap_brand, google_notebooks_*, google_ml_engine_model) have been removed and require configuration updates.
  • Order-insensitive attributes have been converted from lists to sets to prevent perpetual diffs.
  • Stricter validation for some Google Cloud APIs is introduced (e.g., source_contents for google_workflows_workflow).
  • New capabilities build on 7.x, including support for Terraform list resources and enhanced Resource Identity support for import.
  • Write-only attributes now support more sensitive values like certificate private keys and passwords.
  • A recommended upgrade path involves moving to the latest 7.x release first, resolving deprecations, and then upgrading to 8.0 in a non-production environment.
  • OpenTofu users can adopt most changes, but some features like the discovery workflow are not yet equivalent.

Article Image


📖 Source: HashiCorp Relased Terraform Google Cloud Provider 8.0 in General Availability

Related Articles

Comments (0)

No comments yet. Be the first to comment!