-
Notifications
You must be signed in to change notification settings - Fork 4.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
ecs execute-command fails silently on Apple Silicon (M1) #7214
Comments
Hi @jfirebaugh thanks for reaching out. Customizations are owned by service teams so I'll try reaching out to the Session Manager team to get their thoughts on this. |
Very keen to get a solution to this, and to know if there are any workarounds in the short term |
One workaround is to install Rosetta 2 ( |
I am experiencing the same issue on an intel mac. OSX 12.6.1 Macbook Pro 16' - 6-Core Intel Core i7
As you can see, the IDs are wrong but nothing happens. |
This problem also affects Session Manager, e.g. with |
Version 1.2.463.0 of the session-manage-plugin includes support ARM64 for Apple Mac M1. I think this can now be closed. |
Describe the bug
session-manager-plugin does not supply an aarch64 build. Running it directly on Apple Silicon (without Rosetta 2 installed) produces the error "bad CPU type in executable: session-manager-plugin".
aws-cli catches and ignores
OSError
s from executing session-manager-plugin other thanENOENT
:aws-cli/awscli/customizations/ecs/executecommand.py
Lines 113 to 117 in e689fbc
The "bad CPU type" is an
OSError
, but notENOENT
. This means that on Apple Siliconaws ecs execute-command ...
silently does nothing; it just drops you back to the shell with no indication of the underlying issue.Expected Behavior
aws ecs execute-command ...
should execute the command. Or, until aws/session-manager-plugin#26 is fixed, it should at least give you a hint of why it fails.Current Behavior
aws ecs execute-command ...
fails silently.Reproduction Steps
Obtain an M1 Mac. Do not install Rosetta 2. Install session-manager-plugin, e.g. via
brew install session-manager-plugin
. Run someaws ecs execute-command ...
command.Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.7.23 Python/3.10.6 Darwin/21.6.0 source/arm64 prompt/off
Environment details (OS name and version, etc.)
macOS 12.5.1
The text was updated successfully, but these errors were encountered: