IAM - Roles
IAM Roles
Roles in AWS has special meaning. With this functionality you can define different variety of roles and assign it users or your application/service can use them.
Roles are specifically important for AWS security. Because roles use temporary credentials with services. So that we don't need to use own permanent credentials to do some operations. If somehow hackers got access to AWS infrastructure they won't able to access our cached permanent credentials.
Here are some of advantages of using roles :
- Reduced Risk of Credential Exposure
- Least Privilege Principle
- Cross-Account Access
Let's create a role and assign it to the user
- Click to "IAM" , "Roles" and then "Create role" button.
- We need ARN (we talked about this in the previous post) of the user. Copy 12 digit unique ID.
- During role creation select "AWS account" since we are planning to add this role to user. Enter the ID we got from previous step. This ID defines our user it is unique and allows us to specify this role to this specific user.
- After that your test user will able to use this role.
Comments
Post a Comment