-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(assets): Uploaded file must be a non-empty zip #15798
Comments
I met the similar problem with my golang based lambda function, but I can see the built main file in the asset folder, like cdk.out/asset.08e3e0605a610fe153bcd368387d926e0e5ef54458413fb7232b708045dcaf63/main (note that it's not a .zip file), and I can see the zipped main file in s3 stage bucket. |
@mattcui did you find any solution on that? |
@patrick-tresp not yet, I have been struggling for 2 days, no any progress so far. |
@patrick-tresp Today, I retried the deployment, it's successful this time, looked that something was fixed perhaps from server-side. You could have a try. |
Hey @mattcui , thanks for the notice. Will run several deployments now to verify and move resources to that account. :( |
Well after moving all stacks and ressource to the other account, deployment fails also here after a couple passing deployments… What is going on here… |
Hey @mattcui , try this out: empty your s3 bucket from toolkit We also added this to your github action file with
Hope that helps you as well. Cheers, |
@patrick-tresp Thanks, we haven't had this problem for days, I am not sure what caused the problem, and why it disappeared. |
AWS Magic … |
|
We are facing the issue, that we can not deploy any environment ( production, staging, development, test ) with
cdk deploy
anymore.The error that raised:
We can see that cdk.out folder is filled with aseets.[assets-id] folders, but no zip folders are created.
Also interesting is the fact, that if we create a fresh account on aws, bootstrap it and deploy there, everything works as expected for exact one time. Any deployment afterwards ( of course with little changes to force an update ) fails with error above.
This happens on local macOS machine as well as previous working github actions with ubuntu/latest OS.
Reproduction Steps
run
cdk deploy STACKNAME --profile [aws-profile]
Note: [aws-profile] is set in ' ~/.aws/credentials`
What did you expect to happen?
Assets are beeing created in
cdk.out
folder and zipped for an upload to S3 Bucket to execute Cloudformation deployment.What actually happened?
No zip files are created in
cdk.out
folder.Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: