Complete the following steps to create an IAM role in the security, identity, and compliance:
  1. Create an IAM role by selecting the EC2 instance:
  2. Assign AmazonEC2ReadOnlyAccess privilege to the role.
  3. Provide the role name: