Create IAM Role

Create IAM Role

In this step, we will proceed to create IAM Role. In this IAM Role, the policy AmazonSSMManagedInstanceCore will be assigned, this is the policy that allows the EC2 server to communicate with the Session Manager.

  1. Go to IAM service administration interface
  2. In the left navigation bar, click Roles.

role

  1. Click Create role.

role1

  1. Click AWS service and click EC2.
  • Click Next: Permissions.

role1

  1. In the Search box, enter AmazonSSMManagedInstanceCore and press Enter to search for this policy.
  • Click the policy AmazonSSMManagedInstanceCore.
  • Click Next: Tags.

createpolicy

  1. Click Next: Review.
  2. Name the Role SSM-Role in Role Name
  • Click Create Role .

namerole

Next, we will make the connection to the EC2 servers we created with Session Manager.