Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iann0036/hcl2cdktf
Converts HCL to Terraform CDK
https://github.com/iann0036/hcl2cdktf
aws cdk terraform
Last synced: 3 months ago
JSON representation
Converts HCL to Terraform CDK
- Host: GitHub
- URL: https://github.com/iann0036/hcl2cdktf
- Owner: iann0036
- License: mit
- Created: 2020-07-25T01:43:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T13:26:13.000Z (about 2 years ago)
- Last Synced: 2024-10-29T19:55:03.336Z (3 months ago)
- Topics: aws, cdk, terraform
- Language: JavaScript
- Homepage:
- Size: 677 KB
- Stars: 40
- Watchers: 4
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hcl2cdktf
> 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)