Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 2.56 KB

IAM.md

File metadata and controls

34 lines (20 loc) · 2.56 KB

IAM

Identity and access management helps in ensuring that the right users have appropriate access to the AWS resources.

If you are an employer with root access to AWS and want to allow your employees to have access to the AWS resources, you shouldn't give away your root account mail id and password, instead, you should use your account to create a User Group and Users from IAM console. You can then have control on what aws resources your employee can have access to from here.

User:

An AWS Identity and Access Management (IAM) user is an entity that you create in AWS to represent the person or application that uses it to interact with AWS. A user in AWS consists of a name and credentials. From the docs: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html

To add a new user:

IAM console -> User (left nav panel) -> Add user

  1. Create a username check on the access type you want. If you are using from application to access resources you might want to go with "Access key - Programmatic access". Programmatic access provides you with an access key and secret key. If you simply want your employee to have access to resources you might want to go with "Password - AWS Management Console access". You can also choose to check on both the checkboxes(programmatic access and AWS management console access). Now click next.
  2. You can choose to add users to a group(discussed below). If you don't have any group you can create group or skip this and add it later, click next.
  3. You can choose to add key-value such as user's email for example. The key would be Email and value would be person@mail.com. You can also choose to skip this. Click on next.
  4. Now review your choice and click on create.

User Group:

An IAM user group is a collection of IAM users. User groups let you specify permissions for multiple users, which can make it easier to manage the permissions for those users. from the docs: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html

You can create a security group by heading to IAM console -> User groups(left nav panel) -> Create group.

  1. Now give it a group name for example: Database access.

  2. Add users to the group all the users in this group will have access to resources you specify in attach permissions policy for eg: all users in this group will have access to database resources.

  3. Attach permission policy by simply clicking on the checkboxes. You can check on multiple checkboxes. For example, you can check on "AmazonS3FullAccess" to allow users of this group to have full access to S3 resources.

  4. Click on create group.