Change8

v1.13.0

Breaking Changes
📦 terraform
2 breaking5 features🐛 7 fixes🔧 7 symbols

Summary

Terraform 1.13.0 introduces the `terraform stacks` CLI command and significant enhancements to `terraform test`, including internal variable definitions and parallel teardowns. It also promotes `terraform rpcapi` to general availability and includes various performance optimizations and state-handling bug fixes.

⚠️ Breaking Changes

  • Workspaces named with an empty string ("") are now rejected during validation and deletion. If you relied on empty-named workspaces, you must rename them to a valid string.
  • Filesystem functions now undergo consistency checks during apply; invalid data that previously passed may now cause execution failure.

Migration Steps

  1. For `terraform test`, add `variable` definition blocks within test files for any referenced external variables to avoid potential error diagnostics.

✨ New Features

  • Introduced the `terraform stacks` command to expose stack operations via the CLI.
  • The `terraform rpcapi` command is now generally available for go-plugin compatible RPC interfaces.
  • Added support for defining external variables directly within `terraform test` files.
  • Enhanced `terraform test` to allow file-level variable blocks to reference run outputs and other variables.
  • Added parallel execution support for teardown operations in `terraform test`.

🐛 Bug Fixes

  • Fixed an issue where nested module outputs could lose sensitivity markers.
  • Added warning diagnostics for ignored `cloud` blocks in child modules.
  • Fixed a deadlock in `terraform test` when parallelism is set to 1.
  • Fixed a bug where resource identity could be dropped from the state in specific scenarios.
  • Improved static validation to detect invalid references via indexes on objects.
  • Fixed performance issues when evaluating high cardinality resources.
  • Truncated invalid or dynamic references in plan attributes to prevent errors.

🔧 Affected Symbols

terraform stacksterraform rpcapiterraform testterraform workspace deletefilesystem functionscloud blockmodule outputs