Skip to content
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

Incompatibility with aws-cdk >= 2.167.0 #95

Closed
dominikschubert opened this issue Nov 19, 2024 · 3 comments
Closed

Incompatibility with aws-cdk >= 2.167.0 #95

dominikschubert opened this issue Nov 19, 2024 · 3 comments

Comments

@dominikschubert
Copy link
Member

dominikschubert commented Nov 19, 2024

Due to a change in the used JavaScript AWS SDK from v2 to v3, newer aws-cdk versions (2.167.0) are currently incompatible and will produce an error like this:

 ❌  Environment aws://000000000000/us-east-1 failed bootstrapping: InvalidClientTokenId: The security token included in the request is invalid.
...

We're working on a fix to make newer versions compatible with LocalStack.
In the meantime the last compatible version of aws-cdk is 2.166.0.

We'll update the issue here once this has been resolved!

@ish-joshi
Copy link

(.venv) ~/Documents/code/eks-streamlit-cdk git:[main]
cdk --version
2.167.1 (build d681b12)

I got the same error. The workaround for me was manually setting the following env vars

export AWS_ENDPOINT_URL=http://localhost:4566

@pistachionet
Copy link

Same issue for here, this is the error that gets reproduced.

 ❌  Environment aws://000000000000/us-east-1 failed bootstrapping: Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:216:20) {

Downgrading aws-cdk to aws-cdk@2.166.0 works as mentioned in the bug title.

npm install -g aws-cdk-local aws-cdk@2.166.0

@dominikschubert
Copy link
Member Author

We've published an updated version to NPM now. Please upgrade to aws-cdk-local>=2.19.0 for support for aws-cdk versions >=2.167.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants