# Create IAM user

## Introduction

The primary AWS account, also called the root account, is very powerful in terms of access. To avoid losing its keys or secrets, we will create a IAM Administrator account which will have the same privileges as a AWS root account except for access to certain features like billing which we can anyways access using the root account.

## What are we going to cover?

In this chapter, we will create a IAM user with Administrator privileges that will be used throughout the rest of the class to create labs, attack targets and break stuff.

## Steps to create an IAM user

Search for IAM in the services

![IAM Service](/files/RTvoEM3dUhhs8wzFPCzi)

Click on users > Add user

Create a user called 'iamadmin' with the following settings

AccessType: Programmatic access and AWS Management Console access

Console Password: Select Custom password

> Provide a strong alphanumeric character

Uncheck require password reset

> We are only asking you *uncheck require password reset* to do this for the purposes of the training

![IAM new user](/files/bIGiDjNaYIzTJxMYrueB)

Click on 'Attach existing policies directly' and select 'AdministratorAccess'

![IAM set policy](/files/ghFEf8rraV017pZKvacD)

Click Next and Create User

![AWS IAM success message with important information](/files/9K8hL1RB3DZPL2vxmSfW)

Copy and save the following in your text editor in the student VM

1. Access key ID
2. Secret access key
3. Unique sign in URL (Bookmark this link)

## Additional Information

* [Create IAM users](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://0xcriminal.gitbook.io/about-me/cloudsec/setting-up-aws-accounts/creating-an-iam-admin-user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
