I tried to install ssm-agent
on my mac following https://docs.aws.amazon.com/systems-manager/latest/userguide/manually-install-ssm-agent-macos.html
But when I tried to use it aws ssm start-session --target i-xxxxxxxx --region us-east-1 --profile myprofile
I still keep getting an error :
SessionManagerPlugin is not found. Please refer to SessionManager Documentation here: http://docs.aws.amazon.com/console/systems-manager/session-manager-plugin-not-found
when I tried to check the log tail -f /var/log/amazon/ssm/amazon-ssm-agent.log
I see below error
status code: 403, request id:
2024-05-17 10:52:26 INFO Checking if agent identity type CustomIdentity can be assumed
2024-05-17 10:52:26 ERROR Agent failed to assume any identity
2024-05-17 10:52:26 ERROR failed to find identity, retrying: failed to find agent identity
2024-05-17 10:52:26 INFO Checking if agent identity type OnPrem can be assumed
2024-05-17 10:52:26 INFO Checking if agent identity type EC2 can be assumed
2024-05-17 10:52:26 ERROR [EC2Identity] Failed to get instance info from IMDS. Err: failed to get identity instance id. Error: EC2MetadataError: failed to get IMDSv2 token and fallback to IMDSv1 is disabled
caused by: 403 Forbidden: Forbidden
status code: 403, request id:
caused by: EC2MetadataError: failed to make EC2Metadata request
Any idea what should I do?