1.13.5

Latest release in branch 1.13
Released 5 months ago (November 05, 2025)

Software Terraform
Branch 1.13
Status
Supported
End of security fixes TBD
First official release version 1.13.0
First official release date 7 months ago (August 20, 2025)
Release notes https://github.com/hashicorp/terraform/blob/v1.13/CHANGELOG.md
Source code https://github.com/hashicorp/terraform/tree/v1.13
Documentation https://developer.hashicorp.com/terraform/docs
Download https://releases.hashicorp.com/terraform/
Terraform 1.13 Releases View full list

What Is New in Terraform 1.13

Terraform 1.13 introduces the terraform stacks command and several testing improvements that make working with complex configurations and test suites more reliable.

This release focuses on better error handling, performance gains with large resource counts, and enhanced support for writing Terraform tests.

Category Key Changes
New Features terraform stacks command for stack operations
Enhancements Filesystem function consistency checks, flexible provider constraint matching during init, performance improvements for high-cardinality resources, parallel teardown in tests, external variable definitions inside test files, improved type mismatch error messages
Bug Fixes Sensitivity handling for nested module outputs, workspace name validation, plan reference truncation, test deadlock prevention, static validation for object indexes, resource identity preservation in state
Notes terraform rpcapi command is now generally available

Terraform Stacks Command

The new terraform stacks command provides CLI access to stack operations. Available subcommands depend on the installed stacks plugin.

Run terraform stacks -help to see what operations your current setup supports.

This lays groundwork for future stack-based workflows in larger infrastructure projects.

Testing Improvements

You can now define external variables directly inside test files and reference run outputs from other test runs within the same file.

Teardown operations in terraform test can run in parallel, and a parallelism setting of 1 no longer causes deadlocks.

These changes make writing and running test suites for complex modules much more practical.

Performance and Validation Enhancements

Evaluating resources with high cardinality (large count or for_each) is noticeably faster in 1.13.

Filesystem functions are now validated for consistent results during apply to catch invalid data early. Provider constraint matching during init is also more forgiving when at least one valid version exists.

Type mismatch error messages have been improved to help you diagnose configuration issues quicker.

Bug Fixes and Stability

Nested module outputs now correctly preserve sensitivity marking. Empty workspace names are rejected during creation and deletion.

Plan output truncates invalid dynamic references, and resource identity is no longer dropped from state in certain scenarios.

These fixes reduce surprising behavior when refactoring modules or managing workspaces.

FAQ

What is the new terraform stacks command in Terraform 1.13?
It exposes stack operations through the CLI. The available subcommands depend on the stacks plugin you have installed.

How do I define external variables inside a Terraform test file in version 1.13?
You can now add variable definition blocks directly in the test file for any external variables referenced within it.

Did Terraform 1.13 improve performance for resources with large count or for_each?
Yes, evaluation of high-cardinality resources received a performance fix that helps configurations with many instances run faster.

What changed with sensitivity in nested module outputs?
Nested module outputs that were explicitly marked sensitive now correctly retain their sensitivity marking.

Is terraform rpcapi ready for use in Terraform 1.13?
The rpcapi command is now generally available, though it is primarily intended for plugin and tooling developers rather than everyday use.

Releases In Branch 1.13

Version Release date
1.13.5 5 months ago
(November 05, 2025)
1.13.4 6 months ago
(October 15, 2025)
1.13.3 6 months ago
(September 17, 2025)
1.13.2 7 months ago
(September 10, 2025)
1.13.1 7 months ago
(August 27, 2025)
1.13.0 7 months ago
(August 20, 2025)
1.13.0-rc1 8 months ago
(August 06, 2025)
1.13.0-beta3 8 months ago
(July 30, 2025)
1.13.0-beta2 8 months ago
(July 23, 2025)
1.13.0-beta1 9 months ago
(July 09, 2025)
1.13.0-alpha20250708 9 months ago
(July 08, 2025)
1.13.0-alpha20250702 9 months ago
(July 02, 2025)
1.13.0-alpha20250623 9 months ago
(June 23, 2025)
1.13.0-alpha20250604 10 months ago
(June 04, 2025)
1.13.0-alpha20250521 10 months ago
(May 21, 2025)