Using OpenTofu with Hashicorp Terraform Cloud
OpenTofu is the open-source fork of Terraform.
It advertises itself as a drop-in replacement for Hashicorp Terraform.
If you’re wondering whether you can use Hashicorp’s Terraform Cloud backend with OpenTofu, you can.
All you need to do is set the hostname
explicitly in your cloud backend definition to app.terraform.io
.
terraform {
cloud {
organization = "example_corp"
## Required for Terraform Enterprise; Defaults to app.terraform.io for Terraform Cloud
hostname = "app.terraform.io"
}
}
Master GitHub Actions with a Senior Infrastructure Engineer
As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.
Not sure yet? Check out the archive.
Unsubscribe at any time.