- Protect master credentials (‘root’) by using multi-factor authentication (MFA)
- Create an Administrator user account, and avoid logging in as ‘root’.
- Setup Billing alerts, to avoid unexpected AWS charges.
1. Enable MFA
For more information: https://aws.amazon.com/iam/features/mfa/
(Cheatsheet coming soon. Meanwhile, follow these instructions.)
2. Create Administrator User
A new AWS account is granted, by default, a root user with root privileges. That means it has access to everything. Best practices dictate we avoid using root privileges whenever possible.
Instead of routinely logging into root to perform all your AWS tasks, create an Administrator user (within your new AWS account) to manage stuff. Then lock away the root privileges, dragging it out only when absolutely necessary.
Details here: Creating an Admin IAM user
Here’s a quick cheat sheet:
Create Group
- From the AWS Management Console, go to the IAM service page.
- Click Groups from dashboard, then Create New Group.
- Enter Group name (e.g. ‘Administrators’), then Next Step.
- Check box next to AdministratorAccess policy. Consider also adding the Billing policy if you want this Group to manage budgets.
- Click Next Step.
- Click Create Group.
Create User
- Click Users from dashboard, then Add user.
- Enter User name* (e.g. ‘Administrator’).
- Check box next to AWS Management Console access.
- Choose your password options, then Next: Permissions.
- Choose Add user to group.
- Click box next to Administrators (or, the Group name you created).
- Click Next: Tags.
- Add Tags (optional: Tagging IAM Entities), then Next: Review.
- Click Create user.
- Read the success message. Click Download.csv.
- Log out as root user, test logging into your new Administrator account.
Done! Now, let’s setup billing alerts so we don’t get surprised with charges.
3. Setup Billing Alerts
Since I’m using my new Free Tier account for experimenting and learning, I want to be alarmed if there are any charges made against my account. I set my billing alerts for $1.
Here’s a quick cheat sheet:
Enable Billing Alerts
- Log into the AWS Management Console as root, or as your new Administrator user if you delegated it access to Billing.
- Go to Services > Billing.
- On left column dashboard, click Billing preferences.
- Click the boxes next to your preferences, including Receive Billing Alerts. (I also click Receive Free Tier Usage Alerts).
- Save preferences.
Create Billing Alarm(s)
Follow instructions here: AWS – Managing Your Costs with Budgets
Done! Hopefully you will not be surprised by any inadvertent charges!
Reference
Example IAM naming standards (Harvard)
Leave a Reply