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.

Select AWS service, then select EC2.

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

Name the role: SSM-Role

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