Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCL to CDKTF Tool #232

Closed
skorfmann opened this issue Jul 22, 2020 · 4 comments 路 Fixed by #796
Closed

HCL to CDKTF Tool #232

skorfmann opened this issue Jul 22, 2020 · 4 comments 路 Fixed by #796
Assignees
Labels
enhancement New feature or request priority/important-soon High priority, to be worked on as part of our current release or the following one.
Milestone

Comments

@skorfmann
Copy link
Contributor

skorfmann commented Jul 22, 2020

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It'd be pretty cool to have a hcl2cdktf tool. It would take HCL and transform it to cdktf Typescript Constructs. This would enable:

References

#231

@jsteinich
Copy link
Collaborator

Using https://github.com/tmccombs/hcl2json packaged with https://github.com/sanathkr/go-npm might provide an easier path for parsing HCL

@skorfmann
Copy link
Contributor Author

Using https://github.com/tmccombs/hcl2json packaged with https://github.com/sanathkr/go-npm might provide an easier path for parsing HCL

There's some early work going on here

@DanielMSchmidt
Copy link
Contributor

DanielMSchmidt commented Jun 24, 2021

I think sub-steps here could be:

  • Generating TS code via cat main.tf | cdktf tf2cdk > main.ts
  • Use Rosetta internally to allow --language=<java,go,python,c#>
  • Create vscode "Paste as CDK" command
  • Create function that creates a resource class from folder / module
  • Create cdktf import <project-path> command

@DanielMSchmidt DanielMSchmidt linked a pull request Jun 25, 2021 that will close this issue
@danieldreier danieldreier added this to the 0.5 milestone Jun 25, 2021
@danieldreier danieldreier added committed priority/important-soon High priority, to be worked on as part of our current release or the following one. labels Jun 29, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2022

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request priority/important-soon High priority, to be worked on as part of our current release or the following one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants