githubEdit

AWS -SSM - Command Execution

The ssm-user account is not removed from the system when SSM Agent is uninstalled

SSM Agent is preinstalled, by default, on the following Amazon Machine Images (AMIs):

  • Windows Server 2008-2012 R2 AMIs published in November 2016 or later

  • Windows Server 2016 and 2019

  • Amazon Linux

  • Amazon Linux 2

  • Ubuntu Server 16.04

  • Ubuntu Server 18.04

  • Amazon ECS-Optimized

Commands:

aws ssm describe-instance-information --profile stolencreds --region eu-west-1

aws ssm send-command --instance-ids "INSTANCE-ID-HERE" --document-name "AWS-RunShellScript"

aws ssm list-command-invocations --command-id "COMMAND-ID-HERE" --details --query

Eg:

Last updated