Change8

v1.13.0-beta2

📦 terraform
6 features🐛 9 fixes🔧 6 symbols

Summary

Terraform 1.13.0-beta2 introduces the `terraform stacks` and `terraform rpcapi` commands, alongside significant enhancements to `terraform test` variable handling and performance optimizations for high cardinality resources.

Migration Steps

  1. For `terraform test`, define external variables using a `variable` definition block within the test file to avoid potential error diagnostics with complex variables.

✨ New Features

  • The new command `terraform stacks` exposes stack operations through the CLI, with subcommands dependent on the stacks plugin implementation.
  • The command `terraform rpcapi` is now generally available for exposing Terraform operations through an RPC interface.
  • Filesystem functions are now checked for consistent results to catch invalid data during apply.
  • TF Test: Allow parallel execution of teardown operations.
  • terraform test: Test authors can now specify definitions for external variables directly within the test file.
  • terraform test: File-level variable blocks can now reference run outputs and other variables.

🐛 Bug Fixes

  • Added a missing warning diagnostic for ignored `cloud` blocks in child modules.
  • Fixed an issue where nested module outputs could lose sensitivity even when marked as sensitive.
  • Updated validation to reject empty strings ("") as workspace names.
  • Updated `workspace delete` command to reject "" as an invalid workspace name.
  • Plan: Truncate invalid or dynamic references in relevant attributes.
  • Fixed a deadlock occurring when Test run Parallelism is set to 1.
  • Static validation: Detect invalid static references via indexes on objects.
  • Performance fix for evaluating high cardinality resources.
  • Improved error messages on type mismatches during type checking.

🔧 Affected Symbols

terraform stacksterraform rpcapiterraform testworkspace deletevariablecloud block