iann0036 / hcl2cdktf

Converts HCL to Terraform CDK
MIT License
40 stars 4 forks source link
aws cdk terraform

hcl2cdktf

NPM version

Converts HCL to Terraform CDK

Installation

npm i -g hcl2cdktf

Usage

You should specify a Terraform file for processing:

hcl2cdktf test.tf

To output to a specific file instead of to stdout:

hcl2cdktf test.tf -o mycdktf.ts

-o, --output-filename <filename>

(Optional) The filename of the output file

-b, --bare

(Optional) Omit boilerplate like imports and class generation

Supported Features