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.

`cdktf get` keeps on `downloading and generating`, but never finishes

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

cdktf & Language Versions

Terraform v1.0.11 on darwin_arm64 cdktf: 0.8.1

Affected Resource(s)

cdktf

Debug Output

GIST

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

github_iconTop GitHub Comments

1reaction
ansgarmcommented, Oct 6, 2022

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!

1reaction
arbfaycommented, Jan 14, 2022

My workaround has been to use this pre-built package. Add it to the dependencies in the Pipfile:

[packages]
cdktf-cdktf-provider-aws = "4.0.2"

This will also install matching cdktf and constructs packages, with the command pipenv install.

Then in the main.py script, just do a usual import as such:

from cdktf_cdktf_provider_aws import AwsProvider, ec2

Then no need to do cdktf get, just jump to cdktf plan or deploy.

Using pre-built packages is probably more pythonic anyways.

Read more comments on GitHub >

github_iconTop 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 >

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