-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: sam local invoke
throws Error: Error building docker image when function uses x86_64 architectures
#4771
Comments
How have you installed I tried to reproduce the same on my M1 mac with the the configuration you have listed under |
I installed sam through homebrew. Uninstalling sam through homebrew ( Thanks for your help. |
These binaries are for use inside containers which might be running a different architecture. Also, add this to the autobump list since upstream has issues when there are delayed updates to users. Fixes Homebrew/discussions#4290 Fixes aws/aws-sam-cli#4771 Fixes aws/aws-sam-cli#4684 Fixes aws/aws-sam-cli#4607 Closes aws/aws-sam-cli#4614 Closes Homebrew#124616. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
These binaries are for use inside containers which might be running a different architecture. Also, add this to the autobump list since upstream has issues when there are delayed updates to users. Fixes Homebrew/discussions#4290 Fixes aws/aws-sam-cli#4771 Fixes aws/aws-sam-cli#4684 Fixes aws/aws-sam-cli#4607 Closes aws/aws-sam-cli#4614 Closes #124616. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Thanks @PaulTreanor for raising this issue. I am closing this issue as it seems you was able to fix the problem by reinstalling SAM CLI using pkg installer. Please do not hesitate to open a new issue if you are still facing the same issue or other issues. |
|
Description:
Invoking x86_64 lambda functions locally using
sam local invoke
causes the docker image to fail to build, including using the HelloWorld template.This is the same problem as this closed issue #3169. Non of the solutions in that thread fixed the issue.
Steps to reproduce:
sam init
sam build --use-container
sam local invoke HelloWorldFunction --debug
Observed result:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.74.0sam --info output:
The text was updated successfully, but these errors were encountered: