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?
Have SSM start-session use bash
2.5k views Asked by Zags At
1
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