I want to start an AWS SSM session to an EC2 Amazon linux machine. In my AWS Systems Manager preferences I have set RunAs
user as ubuntu
so basically I am looking for a command which would let me start a session with a different RunAs
user.
Something like this:
aws ssm start-session --target i-id --RunAs ec2-user
Current error message which I get on executing:
aws ssm start-session --target i-id
----------ERROR-------
Unable to start command: failed to start pty since RunAs user ubuntu does not exist