shou2017.com
JP

Creating a New IAM User in AWS

Sat Mar 17, 2018
Sat Mar 17, 2018
AWS

To connect to AWS CodeCommit via SSH, you cannot use the root user. Therefore, you need to create a new IAM user. Here are the steps:

Create an IAM User

From the AWS Console, select IAM.

Creating a New IAM User in AWS

Choose “Add Users” under “User Management.”

Creating a New IAM User in AWS

Click “Add User.”

Creating a New IAM User in AWS

Set the user details and select the type of AWS access. In this case, since it’s for personal use, configure it to be as similar to the root user as possible.

Creating a New IAM User in AWS

Next, assign access permissions. For this example, use an existing policy. Since it’s for personal use, select “Administrator Access.”

Creating a New IAM User in AWS

Once the settings are complete, you can confirm that the attached policy is displayed as “Administrator Access.”

Creating a New IAM User in AWS

Add the user. The result should look like this:

Creating a New IAM User in AWS

When the user is successfully added, a password will be issued. Make sure to save it. You can also download it as a CSV file.

Creating a New IAM User in AWS

Users with access rights to the AWS Management Console can sign in using the provided credentials. Test the access by logging in. You will be prompted to set a new password.

Creating a New IAM User in AWS

Set Up MFA for Two-Factor Authentication

Since security has been strengthened, let’s also set up two-factor authentication using MFA.

From the user, go to authentication information and select “Assign MFA Device.” Initially, it will likely be set to “No.”

Creating a New IAM User in AWS

I use AUTHY, so I selected a virtual MFA device.

Creating a New IAM User in AWS

Follow the instructions to complete the setup. Setting up two-factor authentication with MFA is recommended not only for IAM users but also for root users for added security.