Menu
Amazon Elastic Compute Cloud
User Guide for Linux Instances

Executing a Command with SSM Run Command

You can run commands on EC2 instances using the Commands page in the Amazon EC2 console. You can also execute commands using the CLI, or programmatically using the SSM API. For more information, see the Amazon EC2 Simple Systems Manager API Reference.

The commands available to you depend on the permissions your administrator specified for you. Commands are identified by their SSM document name, for example AWS-RunShellScript. Any command that begins with AWS-* uses a pre-defined SSM document provided by AWS. A developer or administrator can create additional documents and provision these for you based on your permissions.