Login to EC2 using Session Manager
brew tap 3-shake/aws-ssh
brew install aws-ssh
$ aws-ssh
# select your instance
QUERY>
i-xxxxxxxxxxxxxxxxx instance-1
i-yyyyyyyyyyyyyyyyy instance-2
i-zzzzzzzzzzzzzzzzz instance-3
# session start
Starting session with SessionId: 3-shake-xxxxxxxxxxxxxxxxx
sh-4.2$