How to create an IAM user in AWS
Last Updated :
02 Jan, 2024
In this, the title IAM stands for Identity Access Management. When we working on cloud services in a company. Different employee has different categories of access. The employees in the company are restricted to particular resource utilization and Administration has the complete access to review all employee's work. Similarly in AWS, the root user has access to all the services managed by administrators. From the root user, we create the IAM users providing some specific permissions as per job role/position.
Through IAM users it will provide both Authentication and Authorization. They are as follows:
- Authentication: Authentication from the AWS account is provided through username and password. Whenever the user tries to log in, the verification of username and password will be done. It can be thought of as a gateway for accessing the resources.
- Authorization: Once authentication is provided secondly comes to authorizing the resources/services. Administration will assign this by providing access to resources/services of the users.
In this Article I will show you how to create an IAM user with the username "myuser1" [Authentication] and provide permission to view only the EC2 instances [ Authorization ]. So this IAM user can only view the EC2 instances and can't modify the EC2 instances and can't access the other services.
Step-by-Step Guide to Creating an IAM User in AWS
Step 1: Go to the Amazon web services Sign-In console. Create an AWS Free Tier Account.Â
Step 2: Try signing in with your root username and password
Step 3: Search in the search box entering "IAM user" as shown in the image.

Step 4: After you enter the IAM user page, you can see the IAM dashboard then go to the "users" option by clicking on it.

In the user sections try creating a user by clicking on the "create user" button, now you will follow through with 3 phases for creating an IAM user.
i. Specifying the user details
- Provide the username that you would like to create as an IAM user

ii. Setup the permissions
- Select the attach policies directly option, It's meant to assign the policies individually for the IAM user.
- In the Permissions policies section go to the search box and enter EC2ReadOnly, you can we see the policy name with AmazonEC2ReadOnly select it to provide this policy access to creating IAM user.
- Similarly you can add on whatever permissions that you would like from the pre-created policies as per the requirement.
- They will be a case in which we can't find the require based policies in that moment , you have to create policies as your own.Â

iii. Review and create
- In this step you have to review the information that you provided, once verified then go for the create option.

- Finally, the IAM user is been created and you can see it on the dashboard as shown in the below figure.
Note: Till now the user creation is done, the root user can anytime may delete the user or customize the permission policies as needed.

Creating the Password (Security)
Step 6: Now based on the mode of login we have to create a password or access Key as per the use case. If you need a web console login then try on setting the password or else create the access key.
Note: In this article, I will guide you through web console access.
Step 7: Firstly Go to security credentials, In the console -sign-in section click on the enable console access button.

By clicking on the Enable console button you will be redirected to manage console login as shown in figure:
- Choose the Enable option
- Coming to the below password section we can set either the customized password that is directly set now or auto-generating and try on creating at the time of login.
- Try Setting up the password as per instructions on including Alphabets, Special Characters, and Numbers.

Step 9: Follow the instructions while setting the password once it is created click on 'Done' option.
Login with the IAM User
Step 10: For logging in with the IAM user we need 3 things:
1. AWS account ID, you can get the AWS account Id by clicking the root user account in the right corner similar to the figure highlighted below.

2. IAM username, The IAM user name that you created
3. Password, The password that you set for this IAM user
Fill in the asking details such as AWS account ID, IAM user, and Password from the sign-in portal going to the IAM user option :

Once you log in successfully you can view the page link like this as shown below figure, on top of the right corner you can we see the IAM username with account ID:

If you reached to this final interface then you performed the creation and login with the IAM user successfully.
Â
Similar Reads
How to use AWS CLI in GitHub Actions ?
Through a command-line interface, Amazon offers a powerful tool called the Amazon Web Services Command Line Interface, or AWS CLI, which makes managing AWS resources easier. The importance of this is that it can simplify the process of utilizing AWS services straight from the terminal, removing the
4 min read
How To Create AWS IAM Roles Using Terraform?
Terraform is an IAAC tool which is used provision infrastructure . Here in this guide i will first discuss what is terraform . Then i will discuss what is IAM Role and in which scenarios we should use IAM Role . Then i will walk you through the different steps to create an IAM Role for an EC2 servic
5 min read
How to Create AWS EC2 using Terraform?
AWS EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that allows users to launch and oversee virtual servers, known as examples, in the cloud. It gives an adaptable and versatile foundation for running different sorts of applications and jobs. With Terraform EC2, cl
13 min read
How To Create AWS VPN Using Terraform?
As associations embrace cloud computing for their Infrastructure needs, the secure and effective association between on-premises organizations and cloud assets becomes pivotal. In the domain of cloud-based DevOps, a Virtual Private Network (VPN) fills in as a fundamental component for laying out sec
6 min read
What is Security Group in AWS and How to Create it?
Cybersecurity has grown to be a crucial component of any business in the modern digital age. Access management is a fundamental element of cybersecurity. Controlling access includes deciding who has access to what resources and for what goals. The management of resource access in the cloud is done u
8 min read
How To Create Custom AMI In AWS Using Terraform
In the present cloud-centric software development landscape, the capacity to efficiently manage infrastructure resources is vital. Making custom Amazon Machine Images (AMIs) is a pivotal part of this process, permitting organizations to normalize their application environments and streamline sending
7 min read
How to Create AWS Instance Scheduler ?
Sometimes the AWS EC2 instances are created unnecessarily, causing an unwanted bill where the resources were not used and we still have to pay for them. In such scenarios, an instance scheduler comes in handy, to avoid the hassle of redundant and extra instances and to help save money. In this artic
5 min read
How to Get Session Token in AWS?
A session token is a popular concept that is used in AWS for giving access to some user or person for a limited amount of time, in this the user gets to access the AWS resources but only for a limited amount of time only. The purpose of the session token is to have more security in the AWS system so
6 min read
How to get AWS Account Id in Lambda
AWS Lambda is a FaaS (Function as a Service) provided by Amazon Web Services. It is a compute service which can be used to run code in response to an event without provisioning or managing servers making it an optimal choice for creating event-driven serverless applications. AWS Lambda provides high
6 min read
How To Create EBS Volume In AWS Using Terraform
EBS Stands for Elastic Block Storage is a block-level storage service provided by Amazon web services to use with Amazon's Elastic Compute Cloud (EC2) instances.It provides persistent, high-performance storage volumes that can be attached to Amazon EC2 instances. it acts as an attached external hard
6 min read