HashiCorp releases Terraform 1.17 with Terraform Policy generally available
Terraform 1.17.0 makes Terraform Policy generally available in the CLI and adds -minimal-refresh, provider requirement variables, and other changes for infrastructure teams.
HashiCorp published Terraform 1.17.0 on October 21, 2026, moving Terraform Policy from experimental status to general availability in the CLI. The -policies flag can now be used with plan, apply, and query without an experimental build or the -allow-experimental-features flag.
Terraform Policy lets teams write rules in HCL and evaluate them during the plan phase. Rules such as blocking public Amazon S3 buckets or requiring cost tags can cause a plan to fail before infrastructure changes are applied. Query policies can also evaluate resources discovered through list blocks and return readable or JSON results.
Terraform 1.17 adds the -minimal-refresh plan option, which limits refresh operations to resources with proposed changes instead of refreshing every resource in the state. The release also allows variables and locals in required_providers, enabling provider version constraints or source addresses to be parameterized.
The 1.17 line was rebuilt with Go 1.26.10, which removes trust in certificates issued by compromised eMudhra intermediate authorities referenced by CVE-2026-111943. Version 1.17.1 followed on October 28, 2026. Additional changes include clearer errors from pow and log for non-number results, surfaced diagnostics during ephemeral-resource renewal, and mock_provider support for ephemeral resources.