-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CDK CLI does not work through corporate proxy. #645
Comments
Facing the similar prob when i run the cdk behind the proxy. Looking up default account ID from STS |
That's a use-case we never had a chance to test with... In order for us to be able to test/repro/fix, can you tell what OS you're using and which mechanism the proxy is configured by (system-wide, environment variables, ...)? I suppose we need to specifically configure something to use proxy settings... We'll have to research what exactly, I guess. |
Related issues: |
Oh yeah, looks like we need to do work on our end: https://aws.amazon.com/blogs/developer/using-the-aws-sdk-for-javascript-from-behind-a-proxy/ Are people feeling strongly about which environment variable to use? I've seen all of these used:
|
This package wraps the SDK and looks at both https://www.npmjs.com/package/aws-sdk-proxy Not suggesting we use that package, but we might use the same approach. |
As a wordaround have configured the proxy in the sdk.js file and able to make the connect to the sts server through aws-cdk. filelocation = aws-cdk/lib/api/util/sdk.js const proxy = require('proxy-agent') |
@RomainMuller I am using Windows 10 and system wide http proxy settings. |
@Black742 - I can not find this location in my node_modules directory. Am i missing something? |
i have same issue. i use windows10. |
@arullewis U should be able to find the files in the global node modules installed directory.. |
A proxy can be specified using the `--proxy` command-line argument, or is automatically read from the `HTTPS_PROXY` or `https_proxy` environment variables. Also fix recent breakage in the SDK usage of CredentialProviderChain. Fixes #645.
@costleya and I both still see this in the latest master. Are you sure it's fixed? Reopening. Verbose output:
|
What kind of permissions are you using while doing this (aws configure/environment variables/a credential plugin)? I've seen this happen when the wrong kind of permission object is passed to the SDK. Thought I fixed them, but maybe not. |
This turned out to be a PEBKAC--my PATH was pointing to an old build of the CDK. |
@rix0rrr when can we expect this commit to be released? |
Any day now. Stay tuned |
@rix0rrr Thanks for fixed release. But there is a lack of code modification. i think right code is below.
|
Oh bully. You are correct. |
Make sure that AWS account lookup also uses the proxy. Fixes a remaining issue from #645.
Make sure that AWS account lookup also uses the proxy. Fixes a remaining issue from #645.
CDK CLI does not work when the user connected to the internet through the proxy. I get
"connect ECONNREFUSED 54.240.195.235:443" error.
AWS CLI & npm does not have any trouble connecting to the internet. is this a known issue?
The text was updated successfully, but these errors were encountered: