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 Microsoft Windows Instances.
The following limitations and prerequisites apply to EC2 instances and managed instances (on-premises servers and virtual machines configured for Run Command) unless otherwise stated. For more information about managed instances, see Setting Up Managed Instances.
Limitations
Run Command is only available in these regions.
Note
For managed instances, 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
| |
|
Agent |
Instances require the SSM agent to process commands. We recommend that you download and install the latest version of the SSM agent. Important Because of a known issue, users in the following regions must download the latest version of the SSM agent: Asia Pacific (Seoul), ap-northeast-2 and China (Beijing), cn-north-1. This is a one time installation. After installing the latest version, you can update the agent using Run Command. 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. | |
|
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. For managed instances, you must also create an IAM service role that enables your on-premises server or VM to communicate with the SSM service. | |
|
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. |
After you configure prerequisites, see Executing a Command Using Amazon EC2 Run Command for step-by-step procedures. To view Run Command examples, see Amazon EC2 Run Command Walkthroughs.
Related Topics
Amazon EC2 Simple Systems Manager section of the AWS Command Line Interface Reference



