Using GitHub to version cdktf projects' information
See original GitHub issueCommunity 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
Hi, guys, not really sure if this is already implemented, but I couldn’t find any guidance in the documentation. Also, I’m not totally sure it makes, I’m a bit newbie to CDK and its best practices, but here it goes:
Basically I’m trying to use terraform-cdk with Github to version the main.py
and the cdktf.json
of different apps that will live in the same repository.
The problem appears mostly when collaborating on an existing project: if one updates its local branch, the person can’t start the project inside the app, given it’s not empty.
The workaround I thought so far is to update the local branch, create a temporary folder, start cdktf project in it, move all files inside this new folder and rename it to match the one existing inside GitHub.
For suggestion, I’d say to allow the init to start either on a non-empty folder or to consume some json to build the project up
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:9 (5 by maintainers)
Top GitHub Comments
If anything else is left unclear, feel free to create a new issue or a post on HashiCorp Discuss and we’re happy to help 👍 Can this issue be closed @lsabreu96?
Got it. So it’s a boilerplate, but a one that can be reproduced without the same command
cdktf init
. Thanks for the explanations, guys !