terraform Terraform Core Releases · · 1.15.0

Terraform v1.15.0: New features and enhancements

terraforminfraawsdeprecation
feature patch announcement

Terraform version 1.15.0 introduces several new features including Windows ARM64 builds, variable/output deprecation attributes, and inline type conversions. Enhancements focus on improved output type constraints, PowerShell support for provisioners, and better deprecation attribute detection. This release impacts users writing Terraform configurations, especially those managing AWS resources or utilizing advanced configuration validation and testing.

  • We now produce builds for Windows ARM64
  • backend/s3: Support authentication via aws login
  • convert function, which allows for precise inline type conversions
  • Terraform now supports variables and locals in module source and version attributes
  • output blocks now can have an explicit type constraints
Features (6)
  • We now produce builds for Windows ARM64
  • You can set a deprecated attribute on variable and output blocks to indicate that they are deprecated. This will produce warnings when passing in a value for a deprecated variable or when referencing a deprecated output

  • backend/s3: Support authentication via aws login
  • validate

    The validate command now checks the backend block. This ensures the backend type exists, that all required attributes are present, and that the backend's own validation logic passes

  • convert function, which allows for precise inline type conversions
  • Terraform now supports variables and locals in module source and version attributes
Enhancements (11)
  • config output blocks now can have an explicit type constraints
  • ssh-based provisioner (file + remote-exec): Re-enable support for PowerShell
  • terraform init log timestamps include millisecond precision
  • init

    skip dependencies declared in development override. This allows you to use terraform init with developer overrides and install dependencies that are not declared in the override file

  • Terraform Test: Allow functions within mock blocks
  • improve detection of deprecated resource attributes / blocks
  • Deprecation messages providers set on resources / blocks / attributes are now part of the deprecation warning
  • Include which attribute paths are marked as sensitive in list_start JSON logs
  • Add input variable validation for Stacks
  • When comparing a container value to null, only top level marks are now considered for the result
  • As part of supporting variables in module sources, most commands now accept variable values
Fixes (16)
  • testing File-level error diagnostics are now included in JUnit XML skipped test elements, ensuring CI/CD pipelines can detect validation failures
  • A refresh-only plan could result in a non-zero exit code with no changes
  • cli Fixed crash in terraform show -json when plan contains ephemeral resources with preconditions or postconditions
  • cli Fixed terraform init -json to properly format all backend configuration messages as JSON instead of plain text
  • state show: The state show command will now explicitly fail and return code 1 when it fails to render the named resources state
  • apply Terraform will raise an explicit error if a plan file intended for one workspace is applied against another workspace
  • lifecycle replace_triggered_by now reports an error when given an invalid attribute reference that does not exist in the target resource
  • backend Fix nil pointer dereference crash during terraform init when the destination backend returns an error
  • stacks send progress events if the plan fails for better UI integration
  • stacks component instances should report no-op plan/apply. This solves a UI inconsistency with convergence destroy plans
  • backend/http: Return conflicting lock info from HTTP backend instead of the lock that failed to be taken
  • states

    fixed a bug that caused Terraform to be unable to identify when two states had different output values. This may have caused issues in specific circumstances like backend migrations

  • cloud

    terraform cloud and registry discovery network requests are now more resilient, making temporary network or service related errors less common

  • Enable formatting of .tfquery.hcl files by terraform fmt
  • Fix validate not returning JSON for some early diagnostics
  • Fix Terraform Stacks plugin installation error
Notes (1)
  • command/init: Provider installation was refactored to enable future enhancements in the area. This results in different order of operations during init and 2 new log messages replacing one (initializing_provider_plugin_message). The change should not have any end-user impact aside from the init command output

Read the original announcement →

https://github.com/hashicorp/terraform/releases/tag/v1.15.0

Related releases