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

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.
Tasks
Create an IAM role as below:
- IAM role name must be
iamrole_javed.
Entity type must be
AWS Serviceand use case must beEC2.Attach a policy named
iampolicy_javed.
Steps
IAM → Roles → Create role now

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

Add permissions and Role name → iamrole_javed

Create Role now

Role iamrole_javed is created.

#happylearning #aws #cloudcomputing





