## 1.17.3 (Unreleased) ## 1.17.2 (November 11, 2026) ENHANCEMENTS: * query: Improve performance and reduce allocations when generating configuration from large HCP Terraform queries. ([#39470](https://github.com/hashicorp/terraform/issues/39470)) BUG FIXES: * Providers referencing a managed resource with detroy=false can cause a cycle ([#39507](https://github.com/hashicorp/terraform/issues/39507)) * init: Fix repeated unavailable-provider schema warnings in log output ([#39517](https://github.com/hashicorp/terraform/issues/39517)) ## 1.17.1 (October 28, 2026) BUG FIXES: * fmt: The original content of a file is now preserved if Terraform experiences an error writing to the original file. ([#39303](https://github.com/hashicorp/terraform/issues/39303)) * Always evaluate module policies during destroy plan ([#39455](https://github.com/hashicorp/terraform/issues/39455)) * stacks: report every policy result for a replaced resource instead of only one of them ([#39453](https://github.com/hashicorp/terraform/issues/39453)) ## 1.17.0 (October 21, 2026) NEW FEATURES: * Terraform now supports variables and locals in provider requirements ([#39153](https://github.com/hashicorp/terraform/issues/39153)) * A new `-minimal-refresh` planning option has been added, which will only refresh resources that have proposed changes. ([#35290](https://github.com/hashicorp/terraform/issues/35290)) * policy: Terraform Policy is now generally available. The `-policies` flag for `plan`, `apply`, and `query` no longer requires an experimental build or the `-allow-experimental-features` flag. Query policies evaluate resources discovered by list blocks and report human-readable or JSON results. See https://developer.hashicorp.com/terraform/policy for more information. ([#38970](https://github.com/hashicorp/terraform/issues/38970)) ENHANCEMENTS: * command/init: Enrich log messages with provider versions ([#38918](https://github.com/hashicorp/terraform/issues/38918)) * test: Add mock_provider support for ephemeral resources ([#38928](https://github.com/hashicorp/terraform/issues/38928)) * command/login: display warning after successful login if user is subject to an organization's TTL policy BUG FIXES: * funcs: pow and log no longer panic when result is not a number ([#38912](https://github.com/hashicorp/terraform/issues/38912)) * ephemeral: Terraform will now use and display diagnostics raised when _renewing_ an ephemeral resource. This may cause warnings to appear that previously were lost. We expect that any error diagnostics that were previously lost would have caused confusing downstream errors, so we do not anticipate this change to be breaking. ([#38989](https://github.com/hashicorp/terraform/issues/38989)) * test: Deterministic dependency ordering in cleanup graph ([#38247](https://github.com/hashicorp/terraform/issues/38247)) * query: report Unknown and N/A results for policy evaluations of discovered resources ([#39058](https://github.com/hashicorp/terraform/issues/39058)) * query: `terraform query -policies` now rejects a path that is not a directory, instead of passing it on to the policy engine ([#39238](https://github.com/hashicorp/terraform/issues/39238)) * funcs: The `log` and `pow` functions now raise errors when they return +/- Infinity, as this result is not usable in downstream code. ([#39304](https://github.com/hashicorp/terraform/issues/39304)) * show: Read variable values from the plan file when showing a local plan ([#39362](https://github.com/hashicorp/terraform/issues/39362)) NOTES: * version: JSON output now includes a new `format_version` field, which will enable safer future changes of the command's JSON output format. It is assumed existing tooling ignores unknown fields and therefore this change should not be breaking in itself but we advice consumers to pay attention to `format_version` in future releases and/or use latest version of hashicorp/terraform-json & hashicorp/terraform-exec which does. ([#38930](https://github.com/hashicorp/terraform/issues/38930)) * Terraform is now built with Go 1.26.10, which no longer trusts certificates issued through a set of compromised eMudhra intermediate CAs (CVE-2026-111943) ([#39417](https://github.com/hashicorp/terraform/issues/39417)) EXPERIMENTS: Experiments are only enabled in alpha releases of Terraform CLI. The following features are not yet available in stable releases. - The experimental "deferred actions" feature, enabled by passing the `-allow-deferral` option to `terraform plan`, permits `count` and `for_each` arguments in `module`, `resource`, and `data` blocks to have unknown values and allows providers to react more flexibly to unknown values. - `terraform test cleanup`: The experimental `test cleanup` command. In experimental builds of Terraform, a manifest file and state files for each failed cleanup operation during test operations are saved within the `.terraform` local directory. The `test cleanup` command will attempt to clean up the local state files left behind automatically, without requiring manual intervention. - `terraform test`: `backend` blocks and `skip_cleanup` attributes: - Test authors can now specify `backend` blocks within `run` blocks in Terraform Test files. Run blocks with `backend` blocks will load state from the specified backend instead of starting from empty state on every execution. This allows test authors to keep long-running test infrastructure alive between test operations, saving time during regular test operations. - Test authors can now specify `skip_cleanup` attributes within test files and within run blocks. The `skip_cleanup` attribute tells `terraform test` not to clean up state files produced by run blocks with this attribute set to true. The state files for affected run blocks will be written to disk within the `.terraform` directory, where they can then be cleaned up manually using the also experimental `terraform test cleanup` command. ## Previous Releases For information on prior major and minor releases, refer to their changelogs: - [v1.16](https://github.com/hashicorp/terraform/blob/v1.16/CHANGELOG.md) - [v1.15](https://github.com/hashicorp/terraform/blob/v1.15/CHANGELOG.md) - [v1.14](https://github.com/hashicorp/terraform/blob/v1.14/CHANGELOG.md) - [v1.13](https://github.com/hashicorp/terraform/blob/v1.13/CHANGELOG.md) - [v1.12](https://github.com/hashicorp/terraform/blob/v1.12/CHANGELOG.md) - [v1.11](https://github.com/hashicorp/terraform/blob/v1.11/CHANGELOG.md) - [v1.10](https://github.com/hashicorp/terraform/blob/v1.10/CHANGELOG.md) - [v1.9](https://github.com/hashicorp/terraform/blob/v1.9/CHANGELOG.md) - [v1.8](https://github.com/hashicorp/terraform/blob/v1.8/CHANGELOG.md) - [v1.7](https://github.com/hashicorp/terraform/blob/v1.7/CHANGELOG.md) - [v1.6](https://github.com/hashicorp/terraform/blob/v1.6/CHANGELOG.md) - [v1.5](https://github.com/hashicorp/terraform/blob/v1.5/CHANGELOG.md) - [v1.4](https://github.com/hashicorp/terraform/blob/v1.4/CHANGELOG.md) - [v1.3](https://github.com/hashicorp/terraform/blob/v1.3/CHANGELOG.md) - [v1.2](https://github.com/hashicorp/terraform/blob/v1.2/CHANGELOG.md) - [v1.1](https://github.com/hashicorp/terraform/blob/v1.1/CHANGELOG.md) - [v1.0](https://github.com/hashicorp/terraform/blob/v1.0/CHANGELOG.md) - [v0.15](https://github.com/hashicorp/terraform/blob/v0.15/CHANGELOG.md) - [v0.14](https://github.com/hashicorp/terraform/blob/v0.14/CHANGELOG.md) - [v0.13](https://github.com/hashicorp/terraform/blob/v0.13/CHANGELOG.md) - [v0.12](https://github.com/hashicorp/terraform/blob/v0.12/CHANGELOG.md) - [v0.11 and earlier](https://github.com/hashicorp/terraform/blob/v0.11/CHANGELOG.md)