iann0036
hcl2cdktf
JavaScript

Converts HCL to Terraform CDK

Last updated Oct 28, 2025
39
Stars
4
Forks
14
Issues
0
Stars/day
Attention Score
7
Language breakdown
JavaScript 75.7%
HCL 24.3%
Files click to expand
README

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

  • [x] HCL1 & HCL2
  • [x] Providers
  • [x] Resources
  • [x] Data Sources
  • [x] Outputs
  • [x] Attribute referencing
  • [x] Locals (via escape hatch)
🔗 More in this category

© 2026 GitRepoTrend · iann0036/hcl2cdktf · Updated daily from GitHub