Reputation: 1
I've been developing in Amplify sandbox locally and finally decided that the app is ready for a proper deployment.
Except that the Amplify console pipeline fails with the error: "Unzipped size must be smaller than 262144000 bytes" for one of my lambdas
The lambda in question has a package size of 75MB when deployed, and has a bundled package package and a layer deployed with it.
I ran the same amplify pipeline command locally and the deployment was successful (although for some reason it didn't show up in the Amplify console, despite all the resources being present in cloudformation).
So there's nothing wrong with the deployment as far as I can tell, it deploys fine from my work mac but fails inside the Amplify console environment.
Is there some issue with Amazon Linux 2023 that incorrectly packages lambdas? Or something that's causing a mismatch in build output between mac and linux? (node_modules are git ignored)
Upvotes: 0
Views: 13