How is OpenTofu Performing Compared to Terraform?
Asked by
CuriousCat123
I'm curious about how OpenTofu has been doing in comparison to Terraform. Has it established itself as a viable alternative? I don't use infrastructure as code in my current job, but I'm interested in understanding how the landscape has evolved recently.
Answers
OpenTofu has a significant advantage over Terraform when it comes to encrypting local state files, which is great for environments like bootstraps where storage needs plenty of security.
Reply to this answer
We still use Terraform at work but are trialing OpenTofu. I'm impressed with the use of target files; it simplifies targeted applies which used to be a hassle in CI environments.
PipelinePro: That sounds helpful! How are you finding your release pipelines with OpenTofu?
Reply to this answer
Using `for_each` on providers is a major game changer! It keeps everything DRY and uncluttered.
NewbieDev: I don't quite understand that. Could you give me a quick example?
RefinedCoder: Itโs also nice how you can use variables and locals to determine the backend configuration. Overall, OpenTofu responds to a lot of what the community has been wanting for years, which wasn't part of HashiCorp's vision.
Reply to this answer
We had a big bill from HashiCorp and decided to migrate to Terrakube over the weekend. So far, I'm really pleased with how everything has turned out. OpenTofu really is a suitable alternative.
Reply to this answer
I switched to OpenTofu right after CDKTF was discontinued and Iโm really liking it. The `for_each` feature helps maintain control flow better than CDKTF used to. Plus, the state encryption is a bonus! Itโs been a straightforward switch with no major rewrites needed.
Reply to this answer
Add your answer
Answers are reviewed before publication.
SecureCoder88: So, if itโs encrypted, does that mean I can keep my backend in source control instead of a bucket? That would make my IaC completely self-contained and not tied to a cloud provider for storage.
CloudCritic: That doesnโt make sense if youโre working with public cloud! If you donโt trust the provider, just use your own customer-managed keys.