Create IAM EC2 Role

Create IAM EC2 Role

  1. Find IAM service on the search bar and click on it IAM
  2. Choose Roles on the sidebar, then click Create role Create role
  3. In the role creation interface, at Select trusted entity step:
    • Trusted entity type choose AWS Service
    • Use case choose EC2
    • Click Next Select trusted entity
  4. In the role creation interface, at Add permissions step:
    • Find, choose role AmazonSSMManagedInstanceCore (allow safe connection to instance without SSH key) and AmazonS3ReadOnlyAccess (allow instance to download code from S3)
    • Click Next Add permissions
  5. In the role creation interface, at Name, review, and create step:
    • Fill in the role name as ec2role
    • Review the 3 steps just set up
    • Click Create role Name, review, and create Name, review, and create Name, review, and create
  6. Finish creating role Role created