aws / aws-lambda-runtime-interface-emulator

Apache License 2.0
924 stars 96 forks source link

MacOS Arm64 Exec Format Error #134

Open kferrone opened 5 days ago

kferrone commented 5 days ago

I am on a Mac arm64. I followed arm64 instructions and I still get

cannot execute binary file: Exec format error

Just out of curiosity, I tried with the amd64 instructions, still the same error. How is it even possible that I get the famous wrong architecture error on both?

valerena commented 4 days ago

This depend a lot on what you're invoking and how (and where too). What command are you trying to run?

If you have a zip Lambda function (not a container image function), it's better to use AWS SAM CLI (which uses this Lambda RIE behind the scenes), instead of manually use RIE directly.