Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 7.75 KB

CHANGELOG.md

File metadata and controls

56 lines (43 loc) · 7.75 KB

0.15.0 (Unreleased)

BREAKING CHANGES:

  • The list and map functions, both of which were deprecated since Terraform v0.12, are now removed. You can replace uses of these functions with tolist([...]) and tomap({...}) respectively. (#26818)

  • Terraform now requires UTF-8 character encoding and virtual terminal support when running on Windows. This unifies Terraform's terminal handling on Windows with that of other platforms, as per Microsoft recommendations. Terraform previously required these terminal features on all other platforms, and now requires them on Windows too.

    UTF-8 and virtual terminal support were introduced across various Windows 10 updates, and so Terraform is no longer officially supported on the original release of Windows 10 or on Windows 8 and earlier. However, there are currently no technical measures to artificially prevent Terraform from running on these obsolete Windows releases, and so you may still be able to use Terraform v0.15 on older Windows versions if you either disable formatting (using the -no-color) option, or if you use a third-party terminal emulator package such as ConEmu, Cmder, or mintty.

    We strongly encourage planning to migrate to a newer version of Windows rather than relying on these workarounds for the long term, because the Terraform team will test future releases only on up-to-date Windows 10 and can therefore not guarantee ongoing support for older versions.

  • Interrupting execution will now cause terraform to exit with a non-zero exit status. (#26738)

  • The trailing [DIR] argument to specify the working directory for various commands is no longer supported. Use the global -chdir option instead. (#27664)

    For example, instead of terraform init infra, write terraform -chdir=infra init.

  • The -lock and -lock-timeout options are no longer available on terraform init (#27464)

  • The -verify-plugins=false option is no longer available on terraform init. (Terraform now always verifies plugins.) (#27461)

  • The -get-plugins=false option is no longer available on terraform init. (Terraform now always installs plugins.) (#27463)

  • The -force option is no longer available on terraform destroy. Use -auto-approve instead (#27681)

  • terraform version -json output no longer includes the (previously-unpopulated) "revision" property [#27484]

  • The atlas backend, which was deprecated since Terraform v0.12, is now removed. (#26651)

  • In the gcs backend the path config argument, which was deprecated since Terraform v0.11, is now removed. Use the prefix argument instead. (#26841)

ENHANCEMENTS:

  • config: Terraform will now emit a warning if you declare a backend block in a non-root module. Terraform has always ignored such declarations, but previously did so silently. This is a warning rather than an error only because it is sometimes convenient to temporarily use a root module as if it were a child module in order to test or debug its behavior separately from its main backend. (#26954)
  • cli: The family of error messages with the summary "Invalid for_each argument" will now include some additional context about which external values contributed to the result. (#26747)
  • cli: Terraform now uses UTF-8 and full VT mode even when running on Windows. Previously Terraform was using the "classic" Windows console API, which was far more limited in what formatting sequences it supported and which characters it could render. (#27487)
  • cli: Improved support for Windows console UI on Windows 10, including bold colors and underline for HCL diagnostics. (#26588)
  • cli: Diagnostic messages now have a vertical line along their left margin, which we hope will achieve a better visual heirarchy for sighted users and thus make it easier to see where the errors and warnings start and end in relation to other content that might be printed alongside. (#27343)
  • cli: Typing an invalid top-level command, like terraform destory instead of destroy, will now print out a specific error message about the command being invalid, rather than just printing out the usual help directory. (#26967)
  • cli: Plugin crashes will now be reported with more detail, pointing out the plugin name and the method call along with the stack trace (#26694)
  • provisioner/remote-exec: Can now run in a mode that expects the remote system to be running Windows and excuting commands using the Windows command interpreter, rather than a Unix-style shell. Specify the target_platform as "windows" in the connection block. (#26865)

BUG FIXES:

  • cli: Exit with an error if unable to gather input from the UI. For example, this may happen when running in a non-interactive environment but without -input=false. Previously Terraform would interpret these errors as empty strings, which could be confusing. (#26509)
  • cli: TF_LOG levels other than trace will now work correctly (#26632)
  • cli: Core and Provider logs can now be enabled separately for debugging, using TF_LOG_CORE and TF_LOG_PROVIDER (#26685)
  • command/console: expressions using path (path.root, path.module) now return the same result as they would in a configuration (#27263)
  • command/show: fix issue with child_modules not properly displaying in certain circumstances (#27352)
  • command/state list: fix bug where nested modules' resources were missing from state list output (#27268)
  • command/state mv: fix display names in errors and improve error when failing to target a whole resource (#27482)
  • command/taint: show resource name in -allow-missing warning (#27501)
  • command/untaint: show resource name in -allow-missing warning (#27502)
  • core: validate will now ignore providers without configuration (#24896)
  • core: refresh data sources during destroy (#27408)

Previous Releases

For information on prior major releases, see their changelogs: