Lab: Setup AWS IAM User for Lab
Step-by-Step Guide to Set Up an IAM User with Admin Credentials for mdbook using AWS Console
Skip this step if the admin user is already set up and the access keys are readily available for the lab.
-
Log in to AWS Management Console
- Go to AWS Console.
- Log in using your root or IAM account with administrative privileges.
Disclaimer: Use of the root account is only for setting up the admin user. If an administrative user already exists, this step can be skipped. Avoid using the root account for regular operations.
-
Navigate to IAM
- In the AWS console, search for IAM (Identity and Access Management) and click on it.
-
Create a New IAM User
-
In the IAM Dashboard, click on Users from the left panel, then click Add user.
-
Enter a User name (e.g.,
admin
).-
Also select
Provide user access to the AWS Mangement Console.
-
Enter custom password.
-
-
-
Set User Permissions
- Under Select AWS access type, check the box for Programmatic access.
- For Set permissions, select Attach policies directly and then search for AdministratorAccess.
- Check the AdministratorAccess policy to grant full admin privileges.
-
Review and Create
- Review the user details and click Create user.
-
Download Access Keys
- Once the user is created, you will see Access key ID and Secret access key. Download these credentials by clicking Download .csv file or copy them for later use. These credentials will be needed to configure the mdbook.
If Admin is user is already setup, follow next steps to create access keys for the admin user.
-
Setup IAM Access Keys for Admin User
- Go to AWS Console & then log in using your admin user which is setup for this lab.
This can be a separate user, used only for the AWS EKS security lab.
-
Navigate to IAM
- In the AWS console, search for IAM (Identity and Access Management) and click on it.
- In the IAM Dashboard, click on Users from the left panel, then enter a User name (e.g.,
admin (this can be the admin user for lab)
).
- Then click on Security Credentials tab, by scrolling down.
- On the Access Keys tab, click on Create Key, then select the usecase as Command Line Interface (CLI), tick the Confirmation and finally click on Next.
- Fill the description (optional) & click on Create access key.
-
Configure IAM User in GitHub Codespace
- Use the Access key ID and Secret access key to configure access in your GitHub Codespace for deployment purposes.
Notes:
- Ensure to store the access keys securely. They will be used to interact with AWS services programmatically, including setting up and deploying resources for the mdbook.