-
Notifications
You must be signed in to change notification settings - Fork 821
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
Corrupted zip archive produced #10234
Comments
Hey @n3b 👋 thanks for raising this! To clarify, was a change made to a Lambda function that is attached to a Lambda Layer? I see from the screenshot it appears our layer version is erroring out. I also have a few follow-up questions:
|
Hey @josefaidt thanks for helping!
|
Hey @n3b thanks for the clarification!
To further clarify, does the layer also contain the |
@josefaidt yes, those are there. The modules are installed locally too, not sure whether they are ignored or not. |
Hey @n3b can you check to see whether the lambda layer distribution zip is empty? Are you able to |
hey @josefaidt yes it is empty 22b zip file, and yes I can install dependencies:
|
Hey @n3b thank you for clarifying! Unfortunately I am unable to reproduce this issue using a sample lambda layer with a few dependencies as I can see my distribution zip archive is around 40MB. Would you mind sending your |
Hey @josefaidt unfortunately I can't do that due to privacy. We've found a quick workaround by getting rid of the layer completely. |
Hey @n3b I have revisited this issue with another layer and the only way I'm able to reproduce this issue is if I delete all files in the layer's |
Before opening, please confirm:
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
16.14.2
Amplify CLI Version
8.0.1
What operating system are you using?
MacOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
nope
Amplify Categories
function, api
Amplify Commands
push
Describe the bug
After very fresh repository init and the
amplify pull
I have added a comment to function then tried to push byamplify push
. I was forced to do a migration and after that I see this:I found similar reports at aws/aws-cdk#12536, however nothing of mentioned there helped to resolve my particular issue. If you could provide some info about what do I need to run amplify-cli from sources - that would be very useful.
Expected behavior
proper
amplify push
Reproduction steps
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: