Change8

v1.11.0-beta2

📦 terraform
6 features🐛 1 fixes1 deprecations🔧 9 symbols

Summary

Terraform 1.11.0-beta2 introduces S3 native state locking, write-only resource attributes, and a new JSON output for module listings, while promoting JUnit XML test reporting to general availability.

Migration Steps

  1. To adopt S3 native state locking, add 'use_lockfile = true' to your S3 backend configuration and migrate away from DynamoDB-related arguments.

✨ New Features

  • Add write-only attributes to resources that are not persisted in state and support ephemeral values.
  • Generally available: -junit-xml option for 'terraform test' to create test reports in JUnit XML format.
  • Generally available: S3 native state locking via the 'use_lockfile' argument.
  • New 'terraform modules -json' command to list all installed modules and their reference status.
  • Added 'override_during' attribute to 'terraform test' to allow using mocked/overridden values during the plan phase.
  • Added 'state_key' attribute for 'run' blocks in 'terraform test' to control internal state file usage.

🐛 Bug Fixes

  • Corrected error message when ephemeral values are included in provisioner output.

🔧 Affected Symbols

terraform testterraform modulesterraform inits3 backenduse_lockfileoverride_duringstate_keyrun blockwrite-only attributes

⚡ Deprecations

  • DynamoDB-related arguments for S3 backend state locking are deprecated in favor of the new S3-native locking mechanism.