Lambda: cdk deploy suddenly getting ECONNRESET on asset publish #28763
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I have a stack that contains docker images. I've been deploying it locally for the past 4 months without a hitch (deploy also worked on my partner's computer), and then suddenly today I've started getting
fail: read ECONNRESET
. I'm usingPythonLambda
construct, as well asDockerImageFunction
construct. All fail.When running
cdk deploy
with--verbose
I see these errors are as follows:and
Other AWS CLI requests to the account work (such as to
ECR
).This started today on both computers I and my partner have access to. Could not find a solution for the life of me. both AWS CLI and AWS CDK, and all libraries are on latest versions.
Deploy finishes with:
No issues on AWS status pages reported for S3.
Expected Behavior
Stack should deploy and assets should be published.
Current Behavior
Failing with:
after getting:
and
Reproduction Steps
Create a stack in
us-east-1
which uses thePythonLambda
or theDockerImageFunction
constructs. Example usage:Possible Solution
I have read somewhere that this is because the underlying AWS SDK uses V4 signatures, and S3 expects V2. Not sure if that is the case here, or why it would change all of a sudden.
Additional Information/Context
I have already tried several versions of
CDK
, as well as to delete theCDKToolkit
stack and reinstall it. Nothing worked.CDK CLI Version
2.122.0 (build 7e77e02)
Framework Version
No response
Node.js Version
v18.9.0
OS
MacOS 14.2.1 (23C71) (Sonoma)
Language
TypeScript
Language Version
No response
Other information
Thank you <3
The text was updated successfully, but these errors were encountered: