Have SSM start-session use bash

2.5k Views Asked by At

I'm using AWS Simple Session Manager along with the AWS CLI to SSH into instances. When I call aws ssm start-session --target INSTANCE_ID, it starts sh on the server, not bash. Is there any way to customize the command that is run on instance start?

1

There are 1 best solutions below

0
On BEST ANSWER

You can do it using an AWS provided configuration document, like so:

aws ssm start-session --target INSTANCE_ID --document-name AWS-StartInteractiveCommand --parameters command="bash -l"

Source: a github issue on the topic