Create an IAM user in AWS

Overview

IAM is used to create AWS users, assign them to a group and assign the permission they need. We can create an IAM user in AWS and assign permission to the users in two ways: 

  • Directly assign a permission to individual users or
  • Create a group, assign the permissions to the group and make the user a part of that group.

In this post, we will take the second approach to create the user.

Steps to create an IAM user in AWS

I am dividing this step into two section.

  • First is to create Group and
  • Second is to create user

Create User group

  1. Login to your AWS account as an root user by visiting the AWS Console -> My Account -> AWS Management Console and fill out your credentials there.
  2. When you logged in successfully you may see a page like below
Create an IAM User in AWS
  1. Go to Services menu and under Security, Identity, & Compliance select IAM or you can directly search IAM in the search bar.
Create an IAM user in AWS LkKlWw5rG0q09lV 5h9Dphb5LOs7wLyaeZ8jje2YQTNDeTgQhu3h9 LTLHbyJ4ZZlqztl3oy1QMwqSRkqPmNH4mHbtGdaXRCedv05AHz651Zlimo GdB f6uIwNplhe03ymz0kgo
  1. Click on the User Groups menu from the left side and click on the Create group button from the right.
Create an IAM user in AWS uX1CIxo03OsDhOuCu48Rpct83PwvJIc292UZ1ac3eAD SbpQZF
  1. Define a User group name. For example: Developers
Create an IAM user in AWS Uyp6rhQ7 KuaUKl OLhtvoXWEIr0XftP WyThCFCI aZ92iQfkVQnyeLm4AUIZiRNE0AhXqHclFlF6ReUDJzjXly xazJkzXkAuDawRoGg13hqInN8
  1. In AWS, we have to attach a policy. These policies will define the permission that the user has.There are a number of predefined policies available. These policies are called managed policies. These are managed by AWS itself. Now, we can give Administrator policy to all the developers. (You can customize as per your need). At the Attach permissions policies section, type AdministratorAccess and press enter and select AdministratorAccess policy.
Create an IAM user in AWS
  1. Click Create group
  2. Now, the group is created.
Create an IAM user in AWS NPymYrq8 JICZqetd4YDOXArYgluMOIh1 hwos Ag6R63U5rRFwPN7NNm3JZUC15ZgT5oqCY3ZLcWcPEKGLtf4KMdqQ

Create an IAM user

  1. Go back to the IAM dashboard and click the Users menu and click Add users button.
Create an IAM user in AWS rB F5SScU2doR UpP2q tx79tFJLl ybddedceHmM7u5XD 8vpgseAa9LPX6po87D9ZVsa8rVJBI8LEu tsdKEKBGBotewGV7nhraEZ1ERYDmYMMxqorpJRizkm NTFmVBPEbTaZ
  1. On the Username you can type username. I am creating a user called codersathi. You can create multiple users at a time. You can just click on Add another user if you want to create multiple users.
Create an IAM user in AWS
  1. Access type. The access type means, how a user can access the AWS resources. Like, using AWS Management console or Programmatic access. Programmatic access means that a user can access AWS resources programmatically like AWS CLI, Java, etc.. Now, we are using AWS Management Console access, we can do similarly by using programming languages like Java, or AWS CLI.

For the user codersathi, I am giving only the AWS Management Console access. This user is not going to access AWS resources programmatically.

  1. Console password: You can use auto generated password or set custom password.
  2. Require password reset: When you enable it, the user will require to change the password when s/he logins for the first time.
  3. Click Next:Permissions
Create an IAM user in AWS MJGD8U3 DtfWw5gBNVS5PtZdOPZdqMHJ ScSGZ8IImPmCWCFZGJoBI1ue 2Ep9a02jhgqczPCSOQD6V4ODC4MyOibuhWSRLZ1YZX Whbg3QlTHvDehgBIC8lg7Ps5rug9KcZ3qwQ
  1. Set permissions: Select a group we created earlier called Developers. You can also select multiple groups if you have them and click Next Tags
Create an IAM user in AWS mDCrpVHlGcxg5oMKBhUy STcjrOd5aU w9idYzRqIWWZgyR2j 5iXyBbw oApiDBGDwWoOmhc5mEw8fcEY6SeQINkvAJ2KQ7MPbovFncZ3GcW8Jy3BaoNxM8xUrLzyWLVSuy tjJ
  1. Add tags: You can add tags if you want, for now I am ignoring it. Click Next review.
  2. Review: Here, you can verify the user you have created and the permission you have given to him/her. If everything is ok, then you can click the Create user button.
  3. The user is created successfully. You can export the CSV file to keep your user’s details like, username, password and so on.  You can view the password, or you can also send the login instruction via email to the user.
Create an IAM user in AWS tzd5q5rLk kqjLkaeWj0qxuupnHaaArD348m 4hPvNpaD0aMuZklMVHGB2j0sYEkETrq2mYGIXSEm1GCPiWRVMwExct

Login as an IAM user

Now, the user created successfully, can this user login from https://aws.amazon.com ? The answer is No.

To login with this user as an IAM user, there is an URL generated along with the user create success message. That URL looks like:

https://<your-12-digits-accouont-id>.signin.aws.amazon.com/console

First, logout from the currently logged in user. And copy the URL above and paste it to your browser. You will see the following kind of window where you will enter your username and password.

Create an IAM user in AWS Br5KFYRKgjCTdkRPH3PXSU6ggUPEfIc B2dR4R695iGSIFZapWq7FjFeiovXjxUrHQNRmTbJe e3 OpAeI 92 sq4JrYeLMRhnKawDw

When you enter your username and password then click Sign in and you will be successfully logged in as an IAM user.

Conclusion

In this post, we learned to create an IAM user and also learned to login as an IAM user.

Sharing Is Caring:
Subscribe
Notify of
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments