SSM Run Command Prerequisites
SSM Run Command has the following limitations and prerequisites. For information about Windows prerequisites, see SSM Run Command Prerequisites in the Amazon EC2 User Guide for Microsoft Windows Instances.
Limitations
Run Command is only available in the SSM regions.
Prerequisites
| Requirement | Details | For More Information |
|---|---|---|
|
Supported Operating System |
Instances must be running a supported version of Linux. 64-Bit and 32-Bit Systems
64-Bit Systems Only
| |
|
Agent |
Instances must be running the latest version of the SSM agent. Note The source code for the SSM agent is available on GitHub so that you can adapt the agent to meet your needs. We encourage you to submit pull requests for changes that you would like to have included. However, Amazon Web Services does not currently provide support for running modified copies of this software. | |
|
IAM Roles and Permissions |
Run Command requires an IAM EC2 instance role for instances that will process commands and a separate role for users executing commands. Both roles require permission policies that enable them to communicate with the SSM API. For instances and users, you can use SSM managed policies or you can create your own IAM policies. If you want to use an existing IAM role for EC2 instances, you must verify that ec2.amazonaws.com is listed in the trust policy for the role. | |
|
Internet Access |
Verify that your EC2 instances have outbound Internet access. Inbound Internet access is not required. | |
|
Amazon S3 Bucket (Optional) |
You can store command output in an Amazon S3 bucket. Command output in the Amazon EC2 console is truncated after 2500 characters. Additionally, you might want to create an Amazon S3 key prefix (a subfolder) to help you organize Run Command output. |
After you configure prerequisites, see Executing a Command with SSM Run Command for step-by-step procedures. To view Run Command examples, see SSM Run Command Walkthroughs.
Related Topics
Amazon EC2 Simple Systems Manager section of the AWS Command Line Interface Reference

