- Newest
- Most votes
- Most comments
The problem is due to this resource pm2customer-lambda-apigw-dev-lambda
stating that the zip file is empty. You need to check the file pm2customerlambda-f7e2816b94b6fea8f3975580a38dd04a9be4f4a7.zip
located in Bucket pm2customer-lambda-apigw-bucket
if the zip file doesn't contain you compiled Lambda function code you need to validate your build step.
Hi,
you will need to check the individual events in CloudFormation to understand what happened. In order to do so, you can either run the mentioned command
aws cloudformation describe-stack-events --stack-name pm2customers-lambda-apigw
on the CLI or check the stack in the CloudFormation console. Please refer to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html as well.
Hi, alternative to Be's proposal if you prefer interactive mode: check on the console to see if your stack still exists: you'd get your events directly from there. If stack was terminated, you will have to obtain events with Stack-Id instead of stack name via CLI or by displaying all stacks in the AWS console (default: only non-terminated ones)
When you have the events, please, update your question with the 1st failing stack event to obtain further assistance on the issue itself.
I have updated my question, please see it.
I did run into similar issue. It turns out the code is not saved in visual studio. The code uploaded into the S3 bucket is empty. After I save the code and re-do the process, it works out.
Relevant content
- asked 10 months ago
- asked 9 months ago
- asked 9 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Yes, it has size=22B, but why? I do zip
Originally the zip command was
zip -jr ${{ env.APPLICATION_PACKAGE }}-${{ github.sha }}.zip ./MinimalApiSample/bin/Release/net6.0/publish/*
I have changed to zip -jr ${{ env.APPLICATION_PACKAGE }}-${{ github.sha }}.zip . -i ./bin/Release/net6.0/publish/ because it executed with error. May be it is the reason that zip file is 22 B = empty?