hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.89k stars 455 forks source link

COMPONENT: opentofu support for terraform-cdk #3593

Open yuriy-yarosh opened 7 months ago

yuriy-yarosh commented 7 months ago

Description

It would've been nice to support OpenTofu as a Terraform replacement, due to the recent Terraform licensing issue.

I'm glad that tfcdk stayed Mozilla, but people need viable options, especially when HashiCorp shoot itself in the foot.

References

No response

Help Wanted

Community Note

commiterate commented 2 weeks ago

I haven't been following the split closely but if Terraform and OpenTofu are still interchangeable, you can use the existing TERRAFORM_BINARY_NAME environment variable to make CDKTF use the tofu binary instead.

https://developer.hashicorp.com/terraform/cdktf/create-and-deploy/environment-variables