iann0036 / hcl2cdktf

Converts HCL to Terraform CDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • HCL1 & HCL2
  • Providers
  • Resources
  • Data Sources
  • Outputs
  • Attribute referencing
  • Locals (via escape hatch)

About

Converts HCL to Terraform CDK

License:MIT License


Languages

Language:JavaScript 75.7%Language:HCL 24.3%