Create EC2 IAM Role with Policy Guide

Create IAM Role for EC2 with Policy Attachment

Create IAM Role for EC2 with Policy Attachment

How to Set Up an IAM Role for EC2 and Attach a Policy

Table of contents

  • Tasks

  • Steps

Tasks

Create an IAM role as below:

  • IAM role name must be iamrole_javed.

  • Entity type must be AWS Service and use case must be EC2.

  • Attach a policy named iampolicy_javed.

Steps

  1. IAM → Roles → Create role now

  2. Trusted entity type → AWS Service | Service or use case → EC2

  3. Add permissions and Role name → iamrole_javed

  4. Create Role now

  5. Role iamrole_javed is created.

    #happylearning #aws #cloudcomputing