-
Notifications
You must be signed in to change notification settings - Fork 456
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HTTP_PROXY/HTTPS_PROXY for Terraform Cloud #816
Comments
Had a quick look, the builtin https request library of node which we're using is not and won't respect the ENV - see here for details nodejs/node#8381 This leaves two options:
|
As a possible workaround, could we add a the same “decorator” functionality as https://github.com/Rob--W/proxy-from-env into https://github.com/hashicorp/terraform-cdk to respect the ENV vars? |
@amod-kadam-avq I've switched this from a bug to an enhancement request and renamed it to show what the underlying improvement needed is. It's tentatively planned for the 0.6 release. Thank you for reporting this! |
@greenstevester given that we're planning on starting work on this in approximately 4-6 weeks I don't think we'll do any interim workarounds before then |
@greenstevester since this seems to be an issue when Terraform Cloud is involved during init, would |
@skorfmann - |
I was hoping that this wouldn't be an issue, since that's using another library - However, looking at this issue, it seems to be a similar story. That's where the the request is created in the Terraform Cloud library. Which leaves you the option, to just use the For reference: NPM itself will respect the proxy settings. |
@skorfmann - how then via |
What the
Both can be done manually. If the remote backend was added to the stack it's gonna by synthesized correctly and the Terraform CLI should pick up whatever you configured there. Does this answer you question, or did I miss anything? |
@skorfmann - great thanks, this is what I was missing. |
Quick update - this isn't going to make it into CDK for Terraform 0.6. I still see it as a high priority and am hoping to get it addressed in a release in the near future. |
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. |
Community Note
cdktf & Language Versions
cdktf- 0.4.1
typescript (node - 14.7.1)
Affected Resource(s)
Unable to create project with Terraform Cloud as a backend.
Debug Output
Expected Behavior
cdktf should create the project and configure backened to be Terraform Cloud.
Actual Behavior
Unable to setup Terraform Cloud for the project
Following error is thrown
Steps to Reproduce
cdktf init --template="typescript"
cdktf will try to create the project and prompts for connecting to Terraform Cloud and Token subsequently.
Important Factoids
References
The text was updated successfully, but these errors were encountered: