Open munch9 opened 4 days ago
looking into this issue now.
The team is aware of this issue and is working on the fix at https://github.com/aws/aws-cdk/pull/32291
internal D181250979
The issue is known and the fix is here: https://github.com/aws/aws-cdk/pull/32291
A fixed version will be released December 6th.
Describe the bug
When running CLI operations (synth/deploy) STS assume role operation not using proxy settings. connect ETIMEDOUT 54.239.32.126:443
Running netstat during cli operations shows repeated attempts to connect directly until timeout occurs tcp 0 1 U-1IZ5ADH66TV96.d:41412 67.220.224.163:https SYN_SENT 395770/node
npx cdk -vvv synth
Regression Issue
Last Known Working CDK Version
2.166.0
Expected Behavior
CLI commands should use proxy settings and assume role correctly
Current Behavior
Proxy is not used so connection times out
Reproduction Steps
Be behind an HTTP proxy
export HTTPS_PROXY=<proxy name>
Use a basic new CDK app with no or empty cdk.context.jsonCreate user an account with permission to assume role in the deployment target account Create a role with necessary CDK deployment permissions in target account and trust to the assuming account root Export user session credentials into the virtual environment
Synth stack and cdk.context.json is correctly populated.
repeat steps with any higher version of aws-cdk >2.166.0 and error is seen
Minimal working example package.json
requirements.txt
app.py
As a reverse test to prove the behaviour if not behind a proxy you can use a similar example. set a non existent proxy value
export HTTPS_PROXY=http://localhost:8181
using cdk <=2.166.0 this will fail to synth as invalid proxy will be used and fail to connect using cdk >2.166.0 will synth correctly as proxy setting is ignoredPossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.171.0
Framework Version
No response
Node.js Version
v20.12.1
OS
22.04
Language
Python
Language Version
3.9.20
Other information
No response