Create IAM Role

Create IAM Role

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

  1. Access the IAM service management console
  2. In the left navigation pane, click Roles.

role

  1. Select AWS service, then select EC2. role

  2. In the search bar, enter AmazonSSMManagedInstanceCore and press enter to search for this policy.

    • Click policy AmazonSSMManagedInstanceCore.
    • Click Next role
  3. Name the role: SSM-Role

    • Click Create Role. role

Next we will connect to the EC2 servers we have created using Session Manager.