aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 20 forks source link

Update Lambda Dockerfile to enforce x86 image architecture #250

Closed rkilpadi closed 11 months ago

rkilpadi commented 1 year ago

Description

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

References

https://repost.aws/knowledge-center/lambda-docker-image-error

gmarciani commented 11 months ago

Done in https://github.com/aws/aws-parallelcluster-ui/commit/d876212a77ebccfe7b0d713413bf79d01c1c94dc