AWS: Creating And Assigning Policy to IAM Users
Step-by-Step: Creating AWS IAM Users
Open the AWS Management Console and navigate to the Identity and Access Management (IAM).
Click on Users from the left navigation panel.
Click Create user.
Assign a suitable name to the user.
Select Provide user access to the AWS Management Console.
Select I want to create an IAM user.
Select Custom password and enter a password fulfilling the criteria.
Uncheck Users must create a new password at next sign-in for now.
Click Next.
Select Attach policies directly.
Search AmazonEC2ReadOnlyAccess and select it.
Click Next.
Scroll and click Create user.
Now create an EC2 instance and log in as an IAM user using the user name and password just created to check the newly created EC2 instances.
To delete a user, select the user -> Delete -> type the user name -> Delete user.