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.
In the left navigation bar, click Roles, then Click Create role.
Select AWS service then EC2.
In the Search box, enter AmazonSSMManagedInstanceCore and press Enter to search for this policy.
Name the Role SSM-Role in Role Name
Next, we will make the connection to the EC2 servers we created with Session Manager.