Skip to main content

Creating an SSM IAM Role and Configuring an EC2 Instance with AWS Systems Manager via the CLI

Hands-On Lab


Photo of Moosa Khalid

Moosa Khalid

AWS Training Architect II





In this hands-on lab, we'll be dissecting the IAM role required by an EC2 instance to be able to communicate with Systems Manager service. We'll first locate the managed AWS policy required for this role and create an EC2 instance via the command line, assigning it the instance profile (container for role assigned). Finally, we'll verify that Systems Manager (SSM) can detect the instance and communicate with it. (Note: This lab is focused on the AWS command line and all technical steps will be shown via the CLI.)

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.