-
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
Cli: Uploaded file must be a non-empty zip #32869
Comments
Are you able to provide a self-containing minimal reproducible code snippets that I can paste into my IDE and see what happens there? |
@pahud I am also facing this issue when using particularly on the Custom Resource Lambda for ECR Deployments when using the When the stack tries to deploy I receive the error - When I synth the stack using cdk version
|
Comment:Can you try using these versions? When I downgraded "devDependencies": {
"aws-cdk": "^2.173.4"
},
"dependencies": {
"aws-cdk-lib": "^2.143.1",
"cdk-ecr-deployment": "^3.0.23",
"constructs": "^10.4.2"
} To overcome the Zero Bytes docker image i do to things
|
@mostafasany - Thank you those versions did get my builds working again for the moment. Much appreciated. Curious to learn what in the later version is causing this bug. |
related #33201 |
Describe the bug
Title: CDK Deploy Creates Empty Bootstrap File: "Uploaded file must be a non-empty zip" Error
Description:
When running
cdk deploy
, the deployment process fails with the following error:This issue occurs due to the creation of an empty or invalid bootstrap file in the
cdk.out
directory.Environment:
cdk.out
folder does not resolve the issue.cdk.out
directory appear correct.cdk bootstrap
before deployment does not prevent the error.Logs and Debug Information:
Relevant logs from
cdk deploy --verbose
:Here is package.json of the CDK project written in TS
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Expected Behavior:
The deployment should proceed without errors, and all generated files, including the bootstrap file, should be valid and non-empty.
Current Behavior
Observed Behavior:
The
cdk.out
directory contains an empty or invalid file for the relevant custom resource, leading to the error:Reproduction Steps
AWS::Lambda::Function
orAWS::S3::Bucket
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.175.1
Framework Version
No response
Node.js Version
18
OS
macOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: