gjbae1212 / gossm

💻Interactive CLI tool that you can connect to ec2 using commands same as start-session, ssh in AWS SSM Session Manager
MIT License
418 stars 51 forks source link

session-manager-plugin incorrect arch for arm64 #60

Open Prophecy67 opened 1 year ago

Prophecy67 commented 1 year ago

Hi,

I am trying to use the gossm package on an arm64 machine, but I am getting the error:

[err][internal.CallProcess:575] fork/exec /.gossm/session-manager-plugin: bad CPU type in executable

When checking the file in my homedir, it is indeed a x86_64 plugin.

Checking the file in the assets directory, it is also an x86_64.

assets/plugin/darwin_arm64
❯ file session-manager-plugin 
session-manager-plugin: Mach-O 64-bit executable x86_64

Overwriting this with the AWS installed session-manager-plugin in the directory and installing gossm that way solves the issue.

Solution: Add proper ARM64 Arch plugin to the assets.