IAM Users ,Groups and Policies

 Hello Friends, In this post, I would like to write more about IAM and what it is in simple words. IAM stands for Identity and Access Management. It is one of the global services in the AWS console. User management in AWS is done through the IAM section. When we create an AWS account, our root account is created by default which we should not be used and share with our colleagues. 

Instead, we can create users in IAM and group them as well. Groups only contain users and not the other groups. Users can belong to several groups.

IAM Policy

    It's a JSON document that consists of a set of statements as given below. Policy document defines set of permissions for users. 
  


Version 

This is the policy language version used to process a policy. To use all of the available features of policy we can set "Version": "2012-10-17" as a version.

Statement 

  • Sid: Identifier of statement. it's optional. 

  • Effect: Allow/Deny. By default this is Deny. Action can be allowed or denied for specified resources.

  • Action: Its API Action for example S3 has different APIs like GetObject, PutObject etc.

  • Resource: Actual list of resources that will affect by the action.

  • Condition: It's an optional element and decided when actions are to be applied.

Security 

    Keep your passwords for higher security of your account. Allow IAM users to change their password and also set some expiration so that users can change it overtimes. As a rule of thumb don't reuse the same password.
We can set Multi-Factor Authentication for better security so that the account won't be compromised even if the password is stolen or hacked.

This is all about IAM users and groups in simple and easy language. Feel free to post your questions if any in the comments below. Thanks!!!  


IAM Roles 

IAM roles are required for services that will need to perform actions on your behalf. We have to assign permissions to AWS services with IAM Roles. Common roles are Ec2 Instance Roles, Lambda functions roles, and Roles for cloud formation.





Comments

Popular posts from this blog

HashMap Implementation with a Balanced Tree

Most frequently asked interview questions and answers on Microservices Architecture

Core Java Interview Questions