Setting up an AWS Account and IAM User
This guide will walk you through the process of creating an AWS account and setting up an IAM user with administrator privileges.
1. Create an AWS Account
- Go to the AWS homepage.
- In the top right corner, click on "Create an AWS Account" or "Sign Up". If you see "Sign In" instead, click it and then look for an option to create a new account.
- Follow the prompts to create your account:
- Provide an email address and AWS account name
- Create a password
- Enter your contact information. If prompted to select an account type, choose 'personal'.
- Provide a valid credit card for billing (you won't be charged for free tier services)
- Verify your identity
- Choose a support plan (Basic is free and sufficient for most users)
2. Create an IAM User with Administrator Privileges
After your account is set up:
- Sign in to the AWS Management Console.
- Search for "IAM" in the services search bar and select it.
- In the IAM dashboard, click on "Users" in the left sidebar.
- On the "Set permissions" page, choose "Attach existing policies directly"
- Search for and select "AdministratorAccess" policy
- Click "Create user" button.
- Skip through the "Add tags" page (optional)
- Review and create the user
3. Enable console access
Click on the username (the blue link)
- This will take you to the user details page
- Click on the "Security credentials" tab
- Scroll down to find the "Console sign-in" section
- Click "Enable console access" (or "Manage" if you see that button)
- Set up the password (custom or auto-generated)
- Optionally uncheck "User must create a new password at next sign-in"
- Click "Apply"
4. Obtain Credentials
- After enabling console access, you'll see the password (if auto-generated) - save this immediately as you won't be able to view it again
- Note the Console sign-in URL at the top of the IAM dashboard (format:
https://[YOUR-ACCOUNT-ID].signin.aws.amazon.com/console) - The 12-digit number in this URL is your AWS Account ID - you'll need this to sign in
- Store these credentials securely:
- Account ID (or account alias if you set one)
- IAM username (e.g.,
admin-user) - Password
After creating the user:
- You'll see a success message with the user's credentials.
- Download the .csv file (recommended) or copy these credentials immediately - you won't be able to access the secret key again
- Note the Console sign-in URL provided (format: https://[YOUR-ACCOUNT-ID].signin.aws.amazon.com/console)
- The 12-digit number in this URL is your AWS Account ID
- Store these credentials securely - they provide full access to your AWS account
5. Sign in as IAM User
To ensure your IAM user is set up correctly:
- Sign out of the root account
- Sign in to the AWS Management Console using the new IAM user credentials
- Enter your Account ID (see section 3)
- Enter your username and password.
Important Note: Always use the IAM user for daily operations. Only use the root account for tasks that specifically require root access.
6. Create Access Key
- Once signed in, right-click on your username and select security credentials.
- Scroll down to the access keys section, and select Create access key.
- Select the "Command Line Interface (CLI)" use case. For context, the access key is needed by the AWS CLI to authenticate and authorize requests to your account's AWS services.
- Skip through the "Add tags" page (optional)
- Create your access key.
- Copy the access key and secret access key somewhere safe. This is the only time that the secret access key can be viewed or downloaded.
Conclusion
By following these steps, you've created an AWS account and an IAM user with administrator privileges, ready for use with AWS CLI and other AWS services.