What’s New in Terraform: Every Release Since 1.0
A version-by-version tour of the notable features and changes in Terraform CLI, starting with the 1.0 release in June 2021 and running through the latest stable line. Bug-fix and dependency-only patch releases are omitted; the focus is on the headline features, meaningful enhancements, and upgrade notes that change how you write or run Terraform.
All details are drawn from the official
HashiCorp Terraform CHANGELOG,
the changelog of each version branch (v1.0 to v1.17), and the dates of the
GitHub releases.
At a Glance
| Version | Released | Headline feature |
|---|---|---|
| 1.0 | Jun 8, 2021 | Stability release with compatibility promises |
| 1.1 | Dec 8, 2021 | moved blocks; cloud block; nullable variables |
| 1.2 | May 18, 2022 | precondition and postcondition; replace_triggered_by |
| 1.3 | Sep 21, 2022 | Optional object attributes with defaults |
| 1.4 | Mar 8, 2023 | terraform_data resource; plan files on errors |
| 1.5 | Jun 12, 2023 | check blocks; import blocks; config generation |
| 1.6 | Oct 4, 2023 | terraform test generally available |
| 1.7 | Jan 17, 2024 | removed blocks; test mocking |
| 1.8 | Apr 10, 2024 | Provider-defined functions |
| 1.9 | Jun 26, 2024 | Cross-object variable validation; templatestring |
| 1.10 | Nov 27, 2024 | Ephemeral resources and ephemeral values |
| 1.11 | Feb 27, 2025 | Write-only attributes; S3 native locking GA |
| 1.12 | May 14, 2025 | Import by resource identity; OCI Object Storage backend |
| 1.13 | Aug 20, 2025 | terraform stacks CLI; test improvements |
| 1.14 | Nov 19, 2025 | List resources, terraform query, and Actions |
| 1.15 | Apr 29, 2026 | Variables in module sources; deprecation markers |
| 1.16 | Aug 26, 2026 | terraform_data store block; action on_failure modes |
| 1.17 | Oct 21, 2026 | Variables in provider requirements; -minimal-refresh; Terraform Policy GA |
Terraform 1.0 (June 8, 2021)
A stability release. Terraform 1.0.0 intentionally has no significant changes compared to 0.15.5, and the 1.0 series is a direct continuation of 0.15. Its purpose is the v1.x Compatibility Promises: configuration and automation that works on 1.0 is meant to keep working across later 1.x minor releases, apart from the exceptions listed in each version’s upgrade notes. Every later release in this article is covered by that promise.
Terraform 1.1 (December 8, 2021)
movedblocks: Module authors record in configuration that a resource or resource instance changed its address, and Terraform migrates the existing object during planning. Users of a shared module no longer have to runterraform state mvafter upgrading it.cloudblock: A new block inside theterraformsettings for the native Terraform Cloud integration with the CLI-driven run workflow, including per-run variables with-varand workspace mapping by tags.- Deletion explanations:
terraform planandterraform applynow say why an instance is planned for deletion, for example becausecountwas lowered.
Enhancements included nullable variables (nullable = false makes a variable
fall back to its default instead of null), more precise type checking in
terraform validate, a type() function in the interactive console, and the
ability to delete a workspace whose state holds only data resources and outputs.
Upgrade notes:
- macOS 10.13 High Sierra or later is required.
terraform graphno longer supports-type=validateand-type=eval.- Applying a saved plan now verifies that the provider packages match the ones used to create the plan.
terraform state mverrors on-backupand-backup-outwithout-stateon non-local backends, instead of ignoring them silently.- The AzureRM backend gained the opt-in
use_microsoft_graphoption.
Terraform 1.2 (May 18, 2022)
preconditionandpostconditionblocks: Resources, data sources, and module outputs can state assumptions and guarantees. When a condition fails, Terraform reports a custom error message.replace_triggered_by: A newlifecycleargument that replaces a resource when an upstream dependency changes.TF_TOKEN_environment variables: Credentials for Terraform-native services (Terraform Cloud and the registry) can be supplied withTF_TOKEN_followed by the encoded hostname.
Enhancements included error messages for conditions and variable validation that
are evaluated as expressions (so values can be interpolated), TF_CLOUD_ORGANIZATION
and TF_CLOUD_HOSTNAME fallbacks for the cloud block, OpenID Connect
authentication for the AzureRM backend, SSH over an HTTP proxy for provisioners,
and a warning when a provider-managed attribute is placed in ignore_changes.
Upgrade notes:
- The
TF_TOKEN_variables take priority overcredentialsblocks and credential helpers. If you use theterraform-credentials-envhelper plugin, disable it. - Outgoing TLS connections made by the CLI require TLS 1.2 and reject SHA-1 signed CA certificates.
- Official Linux packages require kernel 2.6.32 or later.
Terraform 1.3 (September 21, 2022)
- Optional object attributes with defaults: In an object type constraint an
attribute can be declared
optional(type), oroptional(type, default)with a default value. This concluded the long-runningmodule_variable_optional_attrsexperiment, and the experimentaldefaultsfunction was removed. - New functions:
startswith,endswith, andtimecmp(compares timestamps across UTC offsets).
variable "settings" {
type = object({
a = string # required
b = optional(string) # optional, null if unset
c = optional(number, 127) # optional with a default
})
}
Other enhancements: terraform fmt accepts several paths, moved blocks work
across separate module packages, and error messages for function calls now show
the function signature.
Upgrade notes:
- The
artifactory,etcd,etcdv3,manta, andswiftbackends, and the legacyazurebackend name, were removed. - The AzureRM backend supports only Microsoft Graph (MSAL). ADAL support ended.
terraform importno longer accepts-allow-missing-config: at least an empty resource block must exist.- In
terraform show -json,after_unknowncarries more detail than a plaintrueorfalse, so consumers of the JSON may need updating.
Terraform 1.4 (March 8, 2023)
terraform_dataresource: A built-in managed resource that can replacenull_resourceand can store data of any type.- Plan files on errors:
terraform plancan write a plan file even when it hits errors, so the failure can be inspected later. terraform workspace select -or-create: Creates the workspace when it does not exist, which helps automation.terraform metadata functions -json: Exports function signatures in a machine-readable form.
Enhancements included masked interactive input for sensitive variables, a quiet
argument for the local-exec provisioner, mTLS for the HTTP backend, kms_encryption_key
for the GCS backend, and a rewritten plan renderer with no intended output
changes. yamlencode stopped being documented as experimental.
Upgrade notes:
terraform initnow ignores entries in the global provider cache directory unless they match a checksum already in the dependency lock file.textencodebase64encodes the euro symbol differently for the GB18030, GBK, and CP936 encodings, to match the standards.- Provider and module hostnames use non-transitional IDNA2008 mapping rules.
Terraform 1.5 (June 12, 2023)
checkblocks: Independent assertions about infrastructure, optionally with a scoped data source. A failing check produces a warning but does not halt the run, so you can validate infrastructure outside the normal lifecycle.importblocks: Import became a configuration-driven action that is shown interraform plan. Theidhad to be a plain string in this first version.- Generated configuration:
terraform plan -generate-config-out=PATHwrites resource configuration for the objects animportblock adopts. - New functions:
plantimestamp(the timestamp at plan time) andstrcontains.
Enhancements included periodic persistence of state snapshots during apply, and an immediate state save on SIGINT, which shrinks the window for lost state if the process is aborted.
Upgrade notes: this is the last version that officially supports macOS 10.13 and 10.14, and the last that supports Windows 7, 8, Server 2008 and Server 2012.
Terraform 1.6 (October 4, 2023)
terraform testgenerally available: Tests are written in.tftest.hclfiles as a series ofrunblocks. Each block executes a plan and an optional apply against the configuration and checks conditions on the result. This came with a significant change to how tests are written compared to the experimental version.
Enhancements:
- The
importblockidaccepts expressions, as long as the value is a string known at plan time. - Remote plans on Terraform Cloud can be saved with
-out, viewed withterraform show, and applied from the saved file. - Better tracking of what is known about unknown values, which lets
try,can, and other functions give more precise results. - Provider schemas are cached across provider instances, which lowers memory use for configurations with many instances of one provider.
- The Kubernetes backend can split state across several secrets, so it is no longer limited to 1 MiB.
- The S3 backend gained many options for consistency with the AWS provider, such
as
assume_role_with_web_identity,custom_ca_bundle, proxy settings,retry_mode, andallowed_account_ids.
Upgrade notes:
- macOS 10.15 Catalina and Windows 10 or Windows Server 2016 are now the minimum.
- S3 backend: IAM role settings move into a nested
assume_roleblock, endpoint overrides move into anendpointsblock, and the old top-level arguments are deprecated.shared_credentials_fileis deprecated for the plural form, andforce_path_styleforuse_path_style.
Terraform 1.7 (January 17, 2024)
removedblocks: Record in configuration that a resource or module call was removed, and say whether the real object should be destroyed or only forgotten. This is a plannable, configuration-driven alternative toterraform state rm.- Test mocking: New blocks in
.tftest.hclfiles:mock_provider,override_resource,override_data, andoverride_module. Tests can run inapplymode without cloud credentials by creating fake resources.
Enhancements:
importblocks acceptfor_eachto import several instances.terraform console -planevaluates expressions against the planned state.- Test files can use functions, run outputs and variables in provider blocks, and
load a
terraform.tfvarsfrom the test directory. - A change rejected by a
postconditionorprevent_destroyis now shown in the plan output next to the error.
Upgrade notes:
terraform graphnow produces a simplified resources-only graph by default. The old graph is available with-type=plan.- S3 backend:
use_legacy_workflowdefaults tofalse, so credentials follow the same order as the AWS SDKs. - Input validations are written to state again. Users on 1.3 to 1.5 who share remote state across minor versions should upgrade to 1.3.10, 1.4.7, or 1.5.7.
Terraform 1.8 (April 10, 2024)
- Provider-defined functions: Providers can contribute functions to the
language, called as
provider::provider_name::function_name(). - Moving between resource types:
movedblocks can transfer a remote object between resources of different types, when the provider declares that it can convert one type to the other. issensitivefunction: Returns true when a value is marked sensitive.
Enhancements: terraform show -json plans carry the flags applyable and
complete; generated import configuration renders JSON strings as jsonencode
calls; lists of the same length now get a per-element diff in plan output;
terraform providers lock accepts -enable-plugin-cache; the built-in
terraform provider gained encode_tfvars, decode_tfvars, and encode_expr.
Terraform 1.9 (June 26, 2024)
- Cross-object validation: Input variable
validationrules can now refer to other variables and other objects, such as data resources, instead of only the variable being validated. templatestringfunction: Renders a template obtained dynamically, for example from a data source. It resemblestemplatefile.
Enhancements: terraform init -json; removed blocks can declare destroy-time
provisioners; moved refactoring from null_resource to terraform_data;
multi-line input in terraform console; and test runs can pass sensitive values
to input variables.
Upgrade notes:
- Provider version constraints are no longer allowed inside provider blocks in
.tftest.hclfiles. Put them in the main configuration. importblocks that point at a nonexistent module used to be ignored silently and now raise an error.
Terraform 1.10 (November 27, 2024)
The 1.10 line introduced the ephemeral data model, which became the foundation for several features in later releases.
- Ephemeral resources: A new kind of resource that is re-read during every phase of evaluation and is never written to state. Ephemeral resources always produce ephemeral values.
- Ephemeral values: Input variables and outputs can be marked ephemeral. These values are only usable in specific contexts and are never persisted to the plan or state file.
ephemeralasnullfunction: Takes any value and returns the same type with ephemeral values replaced by non-ephemeral nulls, leaving other values intact.terraform modules -json: A new command that lists every installed module in a working directory and indicates whether each is still referenced by the configuration.
Enhancements included negative index support in the element function, better
import block validation during terraform validate, and performance gains for
configurations with large numbers of resource instances.
Upgrade notes worth flagging:
- The S3 backend gained native state locking; when combined with DynamoDB locking, locks are acquired from both. DynamoDB locking was slated for future deprecation.
- The S3 backend removed deprecated top-level IAM role assumption attributes in
favor of the
assume_roleblock. movedblocks now respect reserved keywords, so some resource references may need aresource.prefix.
Terraform 1.11 (February 27, 2025)
- Write-only attributes: Providers can mark certain attributes as write-only. These are not stored in state and can accept ephemeral values, which pairs naturally with the ephemeral model from 1.10.
- JUnit XML test reports GA: The
-junit-xmloption onterraform testgraduated from experimental to generally available, producing test reports in JUnit XML format. - S3 native state locking GA: The
use_lockfileargument became generally available. The DynamoDB-related arguments were deprecated in favor of it, though DynamoDB can still be used alongside S3 locking during migration.
Enhancements included .netrc credential support during provider installation,
new terraform test controls (override_during, state_key), and a
significantly refreshed Azure backend authentication stack that added options
like use_cli, use_aks_workload_identity, and various client credential file
paths.
Terraform 1.12 (May 14, 2025)
- OCI Object Storage backend: A new backend implementation for Oracle Cloud Infrastructure Object Storage.
- Import by resource identity:
importblocks can now target a resource via anidentityattribute instead ofid(the two are mutually exclusive).
Other enhancements:
terraform testgained a-parallelism=noption and the ability to annotate runs for parallel execution.- Logical binary operators can now short-circuit.
terraform initis allowed when tests are present even if there are no configuration files directly in the current directory.
Upgrade note: on Linux, Terraform now requires kernel version 3.2 or later.
Terraform 1.13 (August 20, 2025)
terraform stackscommand: A new CLI surface for stack operations, with subcommands that depend on the installed stacks plugin. Runterraform stacks -helpto see what is available.
Enhancements centered heavily on testing and correctness:
- Filesystem functions are now checked for consistent results, catching invalid data during apply.
terraform initsucceeds when a provider constraint matches at least one valid version.terraform testgained parallel teardown, in-file definitions for external variables, and the ability for file-level variable blocks to reference run outputs and other variables.- Type-checking error messages on mismatches were improved.
Notes: terraform rpcapi became generally available (though it is not intended
for public consumption). Upgrade note: external variables referenced in test
files should now be accompanied by a variable definition block in the test
file.
Terraform 1.14 (November 19, 2025)
A large feature release built around querying and acting on existing infrastructure.
- List resources: Defined in
*.tfquery.hclfiles, list resources let you query and filter existing infrastructure. terraform querycommand: Executes list operations against existing infrastructure, displays results, and can optionally generate configuration to import those results.- Actions: A new top-level
actionblock. Actions are provider-defined and codify use cases outside the normal CRUD model, such asaws_lambda_invokeoraws_cloudfront_create_invalidation. They can be triggered through a resource’s lifecycle or via the-invokeCLI flag. - A new
GenerateResourceConfigurationRPC lets providers produce more precise configuration values during import.
Upgrade notes:
- Building Terraform 1.14 requires macOS Monterey or later (a consequence of the Go 1.25 toolchain).
- Operation parallelism inside container runtimes may be reduced depending on the CPU bandwidth limit.
Terraform 1.15 (April 29, 2026)
- Variables and locals in module sources: Terraform now supports variables
and locals in module
sourceandversionattributes, enabling dynamic module sources. As part of this, most commands now accept variable values. - Deprecation markers: You can set a
deprecatedattribute onvariableandoutputblocks. Terraform emits warnings when a deprecated variable is set or a deprecated output is referenced. convertfunction: Allows precise inline type conversions.backendblock validation:terraform validatenow checks the backend block for a valid type, required attributes, and backend-specific validation.- New build targets: Windows ARM64, and Linux s390x (zLinux) from 1.15.4 on.
- The S3 backend supports authentication via
aws login.
Enhancements included explicit type constraints on output blocks, re-enabled
PowerShell support in the SSH-based file and remote-exec provisioners,
better detection of deprecated resource attributes and blocks, and input
variable validation for stacks.
Upgrade note: the S3 backend’s AWS_USE_FIPS_ENDPOINT and
AWS_USE_DUALSTACK_ENDPOINT environment variables now only honor true or
false, aligning with the AWS SDK for Go.
Terraform 1.16 (August 26, 2026)
- Provider private data across plan/apply: Terraform now stores planned private data for providers, preserving provider-specific state between plan and apply.
terraform_datastoreblock: A new block that can hold ephemeral and sensitive values across plan and apply.importblocks inside modules: Now supported.- Action
on_failuremodes: Resource action triggers can useon_failuremodes ofhalt,taint, orcontinue, and actions gainedbefore_destroyandafter_destroyevents. - Providers can use nested blocks as computed values.
- Pre-built binary for Linux s390x (zLinux).
Notable enhancements:
terraform state showandterraform workspace listcan produce machine-readable output with-json.terraform graphcan emit Mermaid diagrams via-format=mermaid.terraform consoleaccepts an optional-scope=<module address>flag to evaluate expressions within a module or module instance.- Resource
lifecycleblocks supportdestroy = falseto prevent destruction. - The
contains()function can test fornull(and, as a fix,merge()no longer panics onnullobjects). -invokecan be combined with-targetto identify the calling resource instance when several resources trigger the same action.
Upgrade note: bastion_host_key is now correctly applied by provisioners, so
verify the configured key before upgrading.
Terraform 1.17 (October 21, 2026)
- Variables and locals in provider requirements: After module sources in
1.15, provider requirements can now use variables and locals too, for example
version = local.null_versioninsiderequired_providers. Terraform 1.16.4 rejects that line withInvalid version constraint; 1.17.0 installs the provider. -minimal-refreshplanning option: Refreshes only the resources that have proposed changes, instead of checking every object in the state for changes made outside Terraform.- Terraform Policy generally available: The
-policiesflag forplan,apply, andqueryno longer needs an experimental build or-allow-experimental-features. Query policies evaluate the resources that list blocks discover, with human-readable or JSON results.
Enhancements: mock_provider in terraform test supports ephemeral resources,
terraform init logs include provider versions, and terraform login warns when
an organization’s token TTL policy applies to the user.
Notes:
terraform version -jsonnow includes aformat_versionfield ("format_version": "1.0"in 1.17.0), so the format can change safely later. Tools that read this output should start checking it.- Terraform 1.17 is built with Go 1.26.10, which no longer trusts certificates issued through a set of compromised eMudhra intermediate CAs.
- The
logandpowfunctions now raise an error instead of returning infinity or a value that is not a number.
Notes on Method
This article summarizes the stable minor releases from 1.0.0 through 1.17.0. Patch releases that contained only bug fixes, dependency bumps, or security patches are intentionally left out. For the complete, authoritative record, including every patch release and CVE fix, consult the per-version changelogs linked from the main CHANGELOG.