OpenTofu
OpenTofu
April 30, 2024

OpenTofu 1.7 is alive!

By
Sebastian Stadil

We’re incredibly excited today to announce that the long anticipated OpenTofu 1.7 is finally out and available! It includes several long-requested features and some OpenTofu-exclusive capabilities, such as state encryption and enhanced provider-defined functions.

It includes:

  • State Encryption, to protect sensitive state-files at rest with local passphrases and cloud integrations for key management systems such as AWS KMS, GCP KMS, OpenBao, and an extensible API for future integrations.
  • Enhanced Provider-defined Functions, to let providers define custom functions to be used in tofu code, including a tofu-exclusive feature to write those custom functions in Go or Lua next to a user's tofu config files.
  • Loopable Imports, which enable the use of `for_each` in import blocks, making the importing of large amounts of infrastructure into tofu configuration much easier.
  • “Removed” blocks, which make it easy to export infrastructure from user tofu configs.

If you haven’t migrated yet, use our docs to get started. Click here for a detailed changelog.

Note: While this blog references Terraform, everything mentioned in here also applies to OpenTofu. New to OpenTofu? It is a fork of Terraform 1.5.7 as a result of the license change from MPL to BUSL by HashiCorp. OpenTofu is an open-source alternative to Terraform that is governed by the Linux Foundation. All features available in Terraform 1.5.7 or earlier are also available in OpenTofu. Find out the history of OpenTofu here.

Don't take our word for it, try it for yourself.

A screenshot of the modules page in the Scalr Platform