OpenTofu has just blown out its first birthday candle and gifted us version 1.9.0, packed with features that make infrastructure management as delightful as a perfectly brewed cup of coffee. -Features that even Terraform itself doesn’t contain!
Key Highlights:
- Provider Iteration (
for_each
): Ever wanted to deploy resources across multiple regions without duplicating code? Now you can! With the newfor_each
capability in provider configurations, you can dynamically create multiple provider instancesprovider "aws" {
alias = "by_region"
for_each = var.aws_regions
region = each.key
}
- The
-exclude
Flag: Think of it as the opposite of the-target
flag. This nifty addition allows you to exclude specific resources or modules during planning and applicationtofu plan -exclude=kubernetes_manifest.crds
- Performance Boosts: Significant improvements under the hood mean your deployments are faster and more efficient
Community Growth:
OpenTofu’s popularity is soaring faster than a caffeinated developer’s productivity. The registry now handles over 6 million requests daily, with GitHub downloads nearing 1.5 million—a 30% jump since the last release.
Ecosystem Enhancements:
- OpenTofu Search (Beta): Explore documentation for over 4,000 providers and 20,000 modules through the new search interface
- JetBrains Support: JetBrains’ 2024.3 release now offers OpenTofu integration, providing code completion and other features tailored for OpenTofu projects
Looking Ahead:
The team is already brewing up features for the next release, including a prototype for the OCI provider registry. They’re also seeking community input on related RFCs.
With these enhancements, OpenTofu 1.9.0 continues to empower DevOps professionals, making infrastructure as code more intuitive and efficient.
News: OpenTofu 1.9.0 is available now with provider for_each | OpenTofu