On M1 Macs, update_and_build_lambda.sh can cause Runtime.InvalidEntrypoint errors caused due to the image being built on arm while the Lambda is x86. This was difficult to debug because everything works fine when testing the local image.
What has been changed?
Base image for Lambda now specifies architecture.
How Has This Been Tested?
Ran update_and_build_lambda.sh and invoked function
Description
On M1 Macs,
update_and_build_lambda.sh
can causeRuntime.InvalidEntrypoint
errors caused due to the image being built on arm while the Lambda is x86. This was difficult to debug because everything works fine when testing the local image.What has been changed?
Base image for Lambda now specifies architecture.
How Has This Been Tested?
Ran
update_and_build_lambda.sh
and invoked functionReferences
https://repost.aws/knowledge-center/lambda-docker-image-error