-
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
(@aws-cdk/aws-s3module) Resource handler returned message: "Uploaded file must be a non-empty zip" #14843
Comments
Hey @max258-new, I see that you're inputting What do you have in your We had a bug that used to cause this, but it's since been fixed. Check out this thread for more info to see if any of the advice might help you after confirming you've set everything up correctly. You say you did use |
Hey @peterwoodworth Thanks for your response.
this path. I went that thread earlier and I tried out versions mentioned over there |
Did you also do these two things?
|
This might be unrelated, but I am seeing this issue as well when using Node 16. Here are the contents of the Node-zipped lambdas: Only the lambda in the archive created through Node 14.17.0 is accepted when I attempt to deploy via AWS CDK, and it is the only archive content that displays a non-zero size; the other archives are rejected with the same message that @max258-new posted. I suspect that this might be due to the changes that are at the base of the Node issue here; if this is the case, then the Node-based CDK code might need to be updated for use with Node 16 at some point. |
Turns out the workaround for my issue is this. The underlying dependency has already been fixed and upgraded; it would be good to incorporate the updated |
Thanks for your research and input into this @severn-everett, did you check the thread I linked above too? That has a bunch of good info in it, including the solution you found. I know you've already fixed the issue, but I'm linking it in case you're curious and want to see more info :p @max258-new are you still dealing with this issue? |
Please ping me if you're still encountering this issue, thanks! |
|
The Question
Hi I had tried few node versions mentioned below still appearing the same issue
anyone can help me ?
Environment
Other information
new S3Deployment.BucketDeployment(this, 'Deployment', {
sources: [S3Deployment.Source.asset('.path')],
destinationBucket: bucket
});
The text was updated successfully, but these errors were encountered: