Skip to main content

Command Palette

Search for a command to run...

Create IAM Role for EC2 with Policy Attachment

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

Updated
1 min read
Create IAM Role for EC2 with Policy Attachment
A

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 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

Cloud Platforms

Part 30 of 48

This series covers cloud platforms (AWS, Azure, GCP, OCI), including certifications, labs, issues, solutions, and billing. We'll also explore on-premises solutions and hybrid cloud environments.

Up next

Attach IAM Policy to IAM User

How to Assign IAM Policy to an IAM User