Louisa shows you how to
use EC2 Run Command
with an EC2 Linux instance
Adobe Flash Player or a modern browser is required to view videos on this site.
How do I set up and use Amazon EC2 Run Command with my Amazon EC2 instances running Linux?
First, make sure that the following is true of your resources:
- The operating system of your EC2 instance running Linux is supported by Simple Systems Manager (SSM), and the instance is running in a supported region.
- The IAM role associated with your instance has an attached policy that allows it to communicate with the Run Command API (for example, the AmazonEC2RoleforSSM policy).
- The IAM user that will interact with the instance has an attached policy that allows use of SSM (for example, the AmazonSSMFullAccess policy).
- Your EC2 instance has outbound access to the Internet (through an Internet Gateway or NAT gateway).
If these conditions are true, begin by installing the SSM agent on your instance. For detailed instructions for each supported operating system, see Installing the SSM Agent.
After the SSM agent is installed, you can run commands on your EC2 instances from the EC2 console, AWS CLI, or the SSM API.
EC2, Linux, Simple Systems Manager, SSM, Run Command
Did this page help you? Yes | No
Back to the AWS Support Knowledge Center
Need help? Visit the AWS Support Center
Published: 2016-1-27