Terraform Fork OpenTofu 1.9 Adds Provider Iteration |
Written by Kay Ewbank | |||
Tuesday, 28 January 2025 | |||
OpenTofu 1.9 has been released. The open source infrastructure as code tool is a fork of Terraform. It began development with backing from the Linux Foundation when Terraform developers HashiCorp changed the Terraform license from Mozilla Public License to Business Source License. OpenTofu is a tool for building, changing, and versioning infrastructure that is based on Terraform, the infrastructure-as-code software tool created by HashiCorp. When HashiCorp changed to the Business Source License and prohibited commercial use of the community edition by companies who are competitors, the final version before the license change was forked as OpenTofu, backed by the Linux Foundation. OpenTofu can be used to manage service providers as well as custom in-house solutions. OpenTofu uses a high-level configuration syntax for describing infrastructure, so a blueprint of a datacenter can be versioned and treated similarly to other code. It has a "planning" step where it generates an execution plan that shows what OpenTofu will do when you call apply. It also builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Finally, OpenTofu supports change automation, so complex changesets can be applied to infrastructure with minimal human interaction. The latest version has a number of improvements, starting with a provider for_each that allows for easier multi-zone or multi-region deployments. This addition is designed to overcome the problem of keeping the code clean in a multi-region or multi-zone deployment because of the need to work with a number of providers and related configurations. Until now, users had to create duplicated code for each region or zone. Provider iteration means users can iterate over a set of providers instead of the duplicated code using a For...each loop. The next improvement is the addition of an -exclude flag. The previous release of OpenTofu had a -target option that could be used to plan or apply certain resources. The -exclude flag extends this so users can apply an option to everything except a certain resource. The new version also has improvements to early evaluation, encryption, AzureRM and HTTP backends, as well as several new CLI options and what the developers say are significant performance improvements. OpenTofu 1.9 is available now.
More InformationRelated Articles7 Best Practices for Terraform Version Management Unlocking Efficiency & Building Flexible Infrastructure With Terraform Cloud Pulumi Envisions The Intelligent Cloud Pulumi Adds Infrastructure Lifecycle Management Features Advanced Best Practices for CI/CD Pipelines To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Tuesday, 28 January 2025 ) |