question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using GitHub to version cdktf projects' information

See original GitHub issue

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

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ansgarmcommented, Jan 17, 2022

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?

1reaction
lsabreu96commented, Jan 14, 2022

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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - hashicorp/terraform-cdk
Define infrastructure resources using programming constructs and provision ... Project Setup: Learn how to create a new CDKTF project from a pre-built or ......
Read more >
cdktf/cdktf-provider-project: Repository management ... - GitHub
Repository management for prebuilt cdktf providers via cdktf - GitHub - cdktf/cdktf-provider-project: Repository management for prebuilt cdktf providers via ...
Read more >
hashicorp/cdktf-aws-cdk - GitHub
Use AWS CDK constructs in CDKTF projects. Contribute to hashicorp/cdktf-aws-cdk development by creating an account on GitHub.
Read more >
terraform-cdk/project-setup.mdx at main - GitHub
Use init with a project template to automatically create and scaffold a new CDKTF project for your chosen programming language. Templates generate a...
Read more >
Repository management for prebuilt cdktf providers ... - GitHub
About. This project handles repository management for the prebuilt Terraform provider packages and custom constructs that are published for use with Cloud ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found