Remotely Manage Your Linux Instances Using Run Command
Amazon Elastic Compute Cloud (Amazon EC2) Run Command lets you remotely and securely manage the configuration of your Amazon EC2 instances, virtual machines (VMs) and servers in hybrid environments, or VMs from other cloud providers. Run Command enables you to automate common administrative tasks and perform ad hoc configuration changes at scale. You can use Run Command from the EC2 console, the AWS Command Line Interface, Windows PowerShell, or the AWS SDKs. Run Command is offered at no additional cost.
Administrators use Run Command to perform the following types of tasks: monitor their systems, install applications on their machines, inventory machines to see which applications are missing or need patching, patch machines, build a deployment pipeline, bootstrap applications, and join instances to a domain, to name a few.
Information for Windows Users
For information about Run Command for Windows, see Remotely Manage Your Windows Instances Using Run Command in the Amazon EC2 User Guide for Windows Instances.
Run Command Features and Benefits
| Features | Benefits |
|---|---|
|
Fully-managed AWS service offered at no additional cost. |
Is available on Linux and Windows and works with EC2, servers and VMs in your hybrid environment, or VMs from other cloud providers. |
|
Automates administrative and configuration tasks at scale. |
Can be configured to send notifications about command and configuration results using CloudWatch Events or Amazon SNS. |
|
Provides a single view into configuration changes at scale. |
Uses SSM documents, which enable you to quickly define and execute commands. |
|
Improves administration security because there is not need to connect to your machines using Secure Shell (SSH) or Remote Desktop Protocol (RDP). |
Includes pre-defined SSM documents and the ability to create your own, which you can share across accounts or publicly |
|
Offers delegated access control. |
Includes auditing and access control using AWS Identity and Access Management (IAM). |
Getting Started on EC2 Instances
The following table includes information to help you get started with Run Command.
| Topic | Details |
|---|---|
|
The tutorial shows you how to quickly send a command using Run Command with AWS Command Line Interface (AWS CLI). | |
|
Learn about Run Command features and concepts. | |
|
Verify that your instances meet the minimum requirements for Run Command. | |
|
Execute commands from the EC2 console and create a command that you can execute from the AWS Command Line Interface. | |
|
Learn from these detailed walkthroughs how to execute commands using Run Command from either the Amazon EC2 console or the AWS CLI. |
Getting Started in a Hybrid Environment
The following table includes information to help you get started with Run Command.
| Topic | Details |
|---|---|
|
Learn about Run Command features and concepts. | |
|
Register on-premises servers and VMs or servers hosted by other cloud providers with AWS so that you can manage them using Run Command. | |
|
Execute commands from the EC2 console and create a command that you can execute from the AWS Command Line Interface. |
Related Content

