Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iann0036/hcl2cdktf

Converts HCL to Terraform CDK
https://github.com/iann0036/hcl2cdktf

aws cdk terraform

Last synced: about 2 months ago
JSON representation

Converts HCL to Terraform CDK

Awesome Lists containing this project

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)