`cdktf get` keeps on `downloading and generating`, but never finishes
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
cdktf & Language Versions
Terraform v1.0.11 on darwin_arm64
cdktf: 0.8.1
Affected Resource(s)
cdktf
Debug Output
Expected Behavior
Finish eventually
Actual Behavior
It keeps on running, never finishing the download (and it never populates the generated
folder)
Steps to Reproduce
brew install terraform cdktf
mkdir folder
cd folder
cdktf init --template="go" --local
Add the aws provider to cdktf.json:
"terraformProviders": [
"hashicorp/aws@~> 3.68.0"
],
cdktf get
Important Factoids
Trying to follow this tutorial
As simple as it gets
References
https://github.com/hashicorp/terraform-provider-aws/issues/22075
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:19 (7 by maintainers)
Top Results From Across the Web
How to deploy Lambda using terraform created by CDKTF?
This here worked well for me. But is is using TypeScript ...
Read more >Cdktf get don't work on a new python project - CDK for Terraform
Hi People, I'm new of terraform cdk so i start the tutorial here: terraform-cdk/python.md at main · hashicorp/terraform-cdk (github.com) ...
Read more >I hate Terraform with a passion but it is probably the best tool ...
Terraform is half-way between a tool for generating the configuration and applying it. I think Terraform's application engine is actually quite good, but...
Read more >When, Why, and How to Use the CDK for Terraform - YouTube
In this talk, we'll discuss when and why teams would leverage the workflow convenience of Cloud Development Kit for Terraform ( CDKTF )...
Read more >Multi-Stack Deployments with CDK for Terraform - YouTube
HashiCorp open source tools Vagrant, Packer, Terraform, Vault, Consul, Nomad, Boundary, and Waypoint are downloaded tens of millions of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this as there have been different performance improvements to the code generation since, most recently through an upstream fix in JSII by @DanielMSchmidt.
https://github.com/hashicorp/terraform-cdk/issues/1886 contains a bit more context on this whole topic as well.
But as usual, if anything still feels off, don’t hesitate to file a new issue and we’ll look into it!
My workaround has been to use this pre-built package. Add it to the dependencies in the
Pipfile
:This will also install matching
cdktf
andconstructs
packages, with the commandpipenv install
.Then in the
main.py
script, just do a usual import as such:Then no need to do
cdktf get
, just jump tocdktf plan
ordeploy
.Using pre-built packages is probably more pythonic anyways.