Wednesday, 15 January 2020

AWS - IAM User - Assign permission to access EC2 services

After Creating IAM users from AWS,We need to assign required permission to on console to access the services of AWS(Eg:Ec2,S3,Router 53 and So on).

In this example we will see how to grant access to Ec2 instance for user.

Eg: As test user dont have any permissions and will show the error what they get when login in and try to access the EC2 instance.

Console > IAM > Select the user >


> Access Advisor

Now lets login as testuser and access any service Eg: Ec2

We get  "An error occurred fetching instance data: You are not authorized to perform this operation."

Now lets grant the access and check
Console > IAM Select the user> Add Inline Policy >











Search EC2 > We can further specific privilege Now i select full.

We can also give condition with IP or MFA for user to access.



Enter the name





Now lets login to console as testuser and check
 Console user > EC2

No comments: