1.10.0-beta1 (October 31, 2024)
NEW FEATURES:
- Ephemeral resources: Ephemeral resources are read anew during each phase of Terraform evaluation, and cannot be persisted to state storage. Ephemeral resources always produce ephemeral values.
- Ephemeral values: Input variables and outputs can now be defined as ephemeral. Ephemeral values may only be used in certain contexts in Terraform configuration, and are not persisted to the plan or state files.
terraform output -json
now displays ephemeral outputs. The value of an ephemeral output is alwaysnull
unless a plan or apply is being run. Note thatterraform output
(without the-json
) flag does not yet display ephemeral outputs.ephemeralasnull
function: a function takes a value of any type and returns a similar value of the same type with any ephemeral values replaced with non-ephemeral null values and all non-ephemeral values preserved.
BUG FIXES:
- The
secret_suffix
in thekubernetes
backend now includes validation to prevent errors when thesecret_suffix
ends with a number (#35666). - The error message for an invalid default value for an input variable now indicates when the problem is with a nested value in a complex data type. (#35465)
- Sensitive marks could be incorrectly transferred to nested resource values, causing erroneous changes during a plan (#35501)
- Allow unknown
error_message
values to pass the core validate step, so variable validation can be completed later during plan
(#35537) - Unencoded slashes within GitHub module source refs were being truncated and incorrectly used as subdirectories in the request path (#35552)
- Terraform refresh-only plans with output only changes are now applyable. (#35812)
- Postconditions referencing
self
with many instances could encounter an error during evaluation (#35895) - The
plantimestamp()
function would return an invalid date during validation (#35902)
ENHANCEMENTS:
- The
element
function now accepts negative indices (#35501) - Import block validation has been improved to provide more useful errors and catch more invalid cases during
terraform validate
(#35543) - Performance enhancements for resource evaluation, especially when large numbers of resource instances are involved (#35558)
- The
plan
,apply
, andrefresh
commands now produce a deprecated warning when using the-state
flag. Instead use thepath
attribute within thelocal
backend to modify the state file. (#35660)
UPGRADE NOTES:
- backend/s3: Removes deprecated attributes for assuming IAM role. Must use the
assume_role
block (#35721) - backend/s3: The s3 backend now supports S3 native state locking. When used with DynamoDB-based locking, locks will be acquired from both sources. In a future minor release of Terraform the DynamoDB locking mechanism and associated arguments will be deprecated. (#35661)
moved
: Moved blocks now respect reserved keywords when parsing resource addresses. Configurations that reference resources with type names that match top level blocks and keywords frommoved
blocks will need to prepend theresource.
identifier to these references. (#35850)
Previous Releases
For information on prior major and minor releases, refer to their changelogs: