Amazon EC2 Run Command Prerequisites
Amazon EC2 Run Command has the following limitations and prerequisites. For information about Windows prerequisites, see Amazon EC2 Run Command Prerequisites in the Amazon EC2 User Guide for Windows Instances.
Limitations
Run Command is only available in these regions.
Note
For servers and VMs in your hybrid environment, we recommend that you choose the region closest to your data center or computing environment.
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
| |
|
SSM Agent |
SSM Agent processes Run Command requests and configures your machine as specified in the request. You must download and install SSM Agent to your EC2 instance, on-premises servers or VMs, or VMs hosted by other cloud providers. The source code for 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. | |
|
Access to Run Command |
Before you can execute commands using Run Command, you must configure an AWS Identity and Access Management (IAM) EC2 instance role for instances that will process commands. You must also configure a separate user role for users executing commands. Both roles require permission policies that enable them to communicate with the SSM API. Note For servers and VMs in your hybrid environment, you must also create an IAM service role that enables your on-premises server or VM or VM hosted by another cloud provider to communicate with the SSM service. For more information, see Create an IAM Service 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 Simple Storage Service (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. |
Note
SSM communicates with the SSM Agent on your instance by using the EC2 Messaging service. If you monitor traffic, you will see your instances communicating with ec2messages.* endpoints.
After you configure prerequisites, see Executing a Command Using Amazon EC2 Run Command for step-by-step procedures using the Amazon EC2 console. To view AWS Command Line Interface (AWS CLI) and AWS Tools for Windows PowerShell examples, see Amazon EC2 Run Command Walkthroughs.
Related Topics
Amazon EC2 Simple Systems Manager section of the AWS Command Line Interface Reference

