Hashicorp recently released version 0.4 of their CDK for Terraform. This release adds experimental support for using Go to write Terraform configurations. Also included are enhanced support for Terraform modules and asset construction.

The CDK allows for writing Terraform configurations in a number of programming languages including C#, Python, TypeScripts, and Java. It includes support for all existing Terraform providers and modules.

The underlying jsii library that is used to generate language bindings added experimental Go support in a recent release. This allowed the Hashicorp team to extend that and introduce Go support within the CDK. For example, an AWS EC2 instance could be declared using the CDK in Go as follows:


CDK for Terraform Adds Go Support and Improves Asset Construction
1.45 GEEK