Cloud Course

Add Admin User

We are currently logged into AWS with the root account which has unrestricted access to everything. If your login details were compromised, you would basically be SOL. So it's better to setup a different user with admin access that has a few more restrictions, has to re-authenticate more frequently, and can have it's access revoked if you suspect the details are ever compromised.

step 1:

Search for and select IAM Identity Center

Search for and select **IAM Identity Center**
step 2:

Enable IAM Identity Center

Enable IAM Identity Center
step 3:

Click on Users, then Add user

Click on **Users**, then **Add user**
step 4:

Enter all of your details, this is your personal account

Enter all of your details, this is your personal account
step 5:

Leave everything else alone and click *Next

Leave everything else alone and click **Next*
step 6:

Don't create an groups, just click Next

Don't create an groups, just click **Next**

Groups are a great way of organizing users when you have a larger organization on AWS, but just for personal use, we don't need any groups.

step 7:

Verify the details and click on Add user

Verify the details and click on **Add user**

This will create the new user and send them an email to verify their account and setup their password. This new user account will be how you access everything in AWS.

Permissions

We have the user setup, but that user can't access anything. By default, everything in AWS is locked down and you need to be granted permission to do anything. So we now need to give the new user permission to do things in the accounts we created.

step 8:

In IAM Identity Center, click on Permission sets then Create permission set

In IAM Identity Center, click on **Permission sets** then **Create permission set**

We can create custom permissions for users or use some predefined rules created by AWS. We are currently setting up the permissions for your own personal account, and you need AdministratorAccess so that you can do anything in your own AWS account. However, if you were creating users for other people like developers or business owners or DBAs, you would want to limit their access more.

step 9:

Select AdministratorAccess and click Next

Select **AdministratorAccess** and click **Next**
step 10:

Select 12 hours for the Session duration, and click Next

Select 12 hours for the Session duration, and click **Next**

The session duration is how often you will need to re-login to your account. 12 hours is the current maximum amount of time. This is important to remember when using the CLI since you'll need to re-authenticate from the command line every 12 hours.

step 11:

Click on Create

We have four accounts setup, one user, and one permission set. But they are not yet connected. We now need to tell AWS that the new user has the admin permissions on those four accounts.

Click on Create ## Link User to Accounts We have four accounts setup, one user, and one permissio...
step 12:

In IAM Identity Center, click on AWS accounts

In IAM Identity Center, click on **AWS accounts**
step 13:

Select all four accounts then click on Assign users or groups

Select all four accounts then click on **Assign users or groups**
step 14:

Click on Users, select your user, then click on Next

Click on **Users**, select your user, then click on **Next**
step 15:

Check Administrator Access, then click Next

Check **Administrator Access**, then click **Next**
step 16:

Check everything is correct and click Submit

Check everything is correct and click **Submit**

This will process giving the user admin permissions. Do not leave this page until it's complete.

Custom URL

We're almost done, there's just one more thing that's nice to setup with our new accounts. A custom URL.

step 17:

In IAM Identity Center, click on Dashboard

In IAM Identity Center, click on **Dashboard**
step 18:

Click on Go to settings

Click on Go to settings
step 19:

From the Actions dropdown, click on Customize AWS access portal URL

From the **Actions** dropdown, click on **Customize AWS access portal URL**
step 20:

Enter a unique name for your accounts, something you can easily remember, and click Save

Enter a unique name for your accounts, something you can easily remember, and click **Save**

You will now be able to access you accounts with that custom URL.

IAM User

At this point, we're done using the root user account. If you need to delete your account in the future or create more users, you can login with this account. But for day-to-day use, we won't use the root account.

For the rest of this course, we will only be using the new user we just setup in IAM Identity Center.

step 21:

You should have received an email that looks like this. Click Accept invitation

You should have received an email that looks like this. Click **Accept invitation**
step 22:

Create a new password and click Set new password

Create a new password and click **Set new password**
step 23:

Sign in as your new user

Sign in as your new user
step 24:

Setup multi factor auth

Setup multi factor auth

You should now be able to visit your custom AWS URL and see all the accounts you setup. This user can access any of those accounts with AdministratorAccess. If you click on AdministratorAccess under and account, you will be taken to that account. Feel free to go to Playground and take a look around.