Skip to content
watch on youtubeThe notes below cover everything in the video. Find it in the playlist on our channel.Open the YouTube channel
Lesson 3 of 109 min video

Your AWS Account, the Safe Way

Create an AWS account safely: Free plan and credits, root user MFA, IAM users, groups and policies, budgets and alerts, and the AWS CLI.

Video chapters

  1. 00:00Intro
  2. 00:40How AWS's free offer works now
  3. 01:38Step 1: Sign up
  4. 02:34Step 2: Lock down the root user
  5. 03:34IAM: who can do what
  6. 04:45Step 3: Your everyday admin user
  7. 05:56Step 4: Billing alerts, before anything else
  8. 06:58Step 5: The AWS CLI
  9. 08:05Five habits that keep you safe
  10. 09:10Your account is ready, and safe

This is the most important setup in the course. Fifteen careful minutes now protect you from the two classic beginner disasters: a hacked account and a surprise bill. We create the account, lock down the root user, create an everyday admin user, add billing alerts, and install the AWS CLI.

What you need

  • An email address you can access
  • A phone number
  • A debit or credit card for verification
  • An authenticator app on your phone

How AWS's free offer works now

First, how AWS's free offer works today, because it changed in July twenty twenty five.

New accounts get a hundred US dollars in credits at sign-up, and can earn up to another hundred by trying out certain services.

During sign-up, you choose a plan. The free plan lasts six months, or until your credits are used up, whichever comes first. On the free plan, you can't go over the limits, so you can't be charged. That makes it ideal for this course.

The paid plan gives you access to every service, and you pay for what you use beyond your credits. You can upgrade from the free plan at any time, for example when you start a real project.

On top of the credits, more than thirty services have always-free usage, with monthly limits.

One honest warning. Cloud pricing and free offers change. Before you start, check the official AWS free tier page. I'll link it in the notes.

Quick reference

  • Credits: New accounts: $100 at sign-up, up to $100 more
  • Free plan: 6 months, or until credits run out. No charges
  • Paid plan: All services, pay as you go. Upgrade any time
  • Always free: 30+ services with ongoing free usage limits
  • Rules change: Always check aws.amazon.com/free before you start

Step 1 · Sign up

Step one: sign up. Go to aws dot amazon dot com, and choose create an AWS account.

The email you use here becomes the root user, the owner of the whole account. Use an address you'll keep for many years, ideally a dedicated one, like a company or project address, not a random personal inbox.

Enter an account name and your contact details. AWS asks for a card to verify your identity. You may see a small temporary charge that's reversed.

Then verify your phone number, by text message or a call.

Choose the free plan. For learning, it's the safest choice.

And for support, choose basic, which is free. The paid support plans are for businesses.

Remember: whoever controls that root email controls the account. Protect that inbox with a strong password and two-factor authentication too.

Quick reference

  1. aws.amazon.com → Create an AWS account
  2. Root email: one you'll keep for years
  3. Account name, contact details, card verification
  4. Phone verification by SMS or call
  5. Choose plan: Free (recommended for this course)
  6. Support plan: Basic (free)
Tip: Use a dedicated email, not your daily inbox. It controls everything.

Step 2 · Lock down the root user

Step two: lock down the root user. The root user can do absolutely anything, including closing the account. So we protect it first, and then stop using it.

Sign in as root, open the account menu in the top right, and choose security credentials.

Assign a multi-factor authentication device. An authenticator app on your phone works well. A passkey or a hardware security key is even better.

Scan the QR code with your app, and type in two codes in a row. From now on, a stolen password alone isn't enough to get into your account.

Never create access keys for the root user. Access keys are for programs, and a leaked root key is the worst possible leak.

Save the root password in a password manager. Then follow one simple rule: root is only for first setup, a few account and billing settings, and closing the account. Everything else, you do as your admin user, which we create next.

Quick reference

  1. Sign in as root → account menu → Security credentials
  2. Assign MFA → authenticator app or passkey
  3. Scan the QR code, enter two codes in a row
  4. Never create access keys for root
  5. Store the root password in a password manager

ROOT USER RULES

Use root ONLY for:
  - first setup
  - account + billing settings
  - closing the account

Everything else:
  your IAM admin user

IAM: who can do what

Before we create the admin user, let's understand I A M, identity and access management. It's the security heart of AWS, and it comes up in every job interview.

Users are people, or applications, with long-term credentials, like a password, or access keys.

Groups collect users that need the same permissions, like admins, or developers. You give permissions to the group, and every user in it gets them.

Roles give temporary permissions. A server can take on a role to read from storage, without any stored password. Roles are the modern, preferred way for AWS services to access each other, and we'll use one in episode seven.

Policies are JSON documents that say what's allowed. This one allows exactly one action, reading objects, on exactly one storage bucket. Effect, action, and resource are the three words to remember.

And the principle behind all of it is least privilege. Give every user, role and program only the permissions it actually needs, and nothing more. If something gets compromised, the damage stays small.

Quick reference

  • Users: A person or app with long-term credentials
  • Groups: Collections of users that share permissions
  • Roles: Temporary permissions for services or people
  • Policies: JSON documents: allow or deny actions
  • Least privilege: Give only what's needed, nothing more

policy · read one bucket

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:GetObject"],
    "Resource":
      "arn:aws:s3:::my-site/*"
  }]
}

Step 3 · Your everyday admin user

Step three: your everyday admin user. Open the I A M console, go to user groups, and create a group called admins.

Attach the AWS managed policy called administrator access. For your own learning account, the person running it needs full access.

Then go to users, and create a user for yourself, with access to the management console, and a strong password.

Add that user to the admins group. Notice we never attach permissions directly to a user. Groups keep things tidy as teams grow.

Sign out of root, and sign in again with the account's sign-in URL, which includes your account ID. You can create an account alias, so the URL contains a name instead of a number. Then, as your new user, assign MFA, exactly like you did for root.

A professional note. Companies usually manage people through I A M Identity Center, which connects to their company login, and AWS recommends it for teams. For a personal lab account, an I A M user with MFA, in an admins group, is a perfectly reasonable start.

Quick reference

  1. IAM → User groups → Create “Admins”
  2. Attach policy: AdministratorAccess
  3. IAM → Users → Create user, console access
  4. Add the user to the Admins group
  5. Sign in with the account sign-in URL, then add MFA

SIGN-IN URL · IAM users

https://<account-id>.signin.aws
        .amazon.com/console

Tip: create an account alias
to replace the number with a name
Tip: Companies use IAM Identity Center for people. For a personal lab, this is fine.

Step 4 · Billing alerts, before anything else

Step four: billing alerts. Do this before you create a single resource.

Open billing and cost management, and go to budgets.

Create a budget from the zero spend template, and enter your email. You'll get an email as soon as any cost at all appears, which is perfect while you're learning.

Then create a second budget, a monthly cost budget, with a small amount, like five dollars.

Add alerts at eighty percent of the actual amount, and at one hundred percent of the forecast. The forecast alert is the clever one. It warns you before the money is spent, based on how fast you're spending.

Finally, visit the billing dashboard, and see your credits and how much remains. Make checking this page a weekly habit.

Budgets don't stop spending by themselves. They warn you. The protection comes from you reading the email, and deleting whatever caused the cost. That's why we set them up now, while the account is empty, so the very first unexpected charge gets your attention.

Quick reference

  1. Billing and Cost Management → Budgets
  2. Template: Zero spend budget → your email
  3. Second budget: Monthly cost, e.g. $5
  4. Alerts at 80% actual and 100% forecasted
  5. Billing dashboard: check credits remaining

YOUR SAFETY NET

Zero spend budget
  → email the moment ANY cost appears

Monthly budget: $5
  → 80% actual     → email
  → 100% forecast  → email

Step 5 · The AWS CLI

Step five: the AWS command line. Most real cloud work happens in a terminal, so let's set it up.

On Linux, download the version two installer with curl.

Unzip it, and run the install script. On Mac and Windows, AWS provides a normal installer.

To connect the CLI to your account, create an access key for your admin user, in the I A M console, under security credentials. Then run aws configure, and paste the key, your preferred region, and json as the output format. If you used I A M Identity Center, use aws configure sso instead, which avoids long-term keys entirely.

Test it with aws s t s get caller identity. It answers the question: who am I?

If you see your account number and your admin user, everything works.

And treat access keys exactly like passwords. Never paste them into code, never commit them to Git, and delete any key you're not using. Automated bots scan public GitHub for leaked AWS keys within minutes.

Quick reference

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip
unzip awscliv2.zip && sudo ./aws/install
aws configure     # IAM user's access key, region, output: json
aws sts get-caller-identity
{ "Account": "123456789012", "Arn": "arn:aws:iam::…:user/you-admin" }
Tip: Access keys are passwords for programs. Never commit them to Git.

Five habits that keep you safe

Five habits that will keep your account safe for the rest of this course.

Pick one home region for your labs, close to you, and always check the region selector before creating anything.

Tag everything you create, for example, project equals cloud course. Tags let you find, and later delete, everything from one project.

Clean up after every lab, on the same day. A forgotten server or database is the most common source of surprise costs.

Check the billing dashboard once a week. It takes two minutes.

And never share keys or passwords: not in chats, not in screenshots, not in code, and not in videos.

And if something does go wrong, act fast and calmly. If a key leaks, deactivate and delete it in I A M immediately, then check the billing dashboard and your list of resources in every region. If you see a cost you don't understand, open a case with AWS support from the billing console. AWS is often helpful with genuine first-time mistakes, especially when you report them quickly.

Quick reference

  • One home region: Pick one region for labs, check the selector
  • Tag everything: project = cloud-course on every resource
  • Clean up after labs: Delete what you made, the same day
  • Weekly bill check: Billing dashboard + Cost Explorer, 2 minutes
  • Never share keys: Not in chats, screenshots, code, or videos

Your account is ready, and safe

Let's recap. You understand the free plan and its credits.

Your root user has MFA, no access keys, and is only used for rare tasks.

You have an admin user in an admins group, also with MFA, and you understand users, groups, roles, policies, and least privilege.

You have budgets that email you before anything gets expensive.

And the CLI is installed and connected. In the next episode, the fun starts. We launch your first EC2 server, connect to it with SSH, and serve a web page to the whole internet, using everything from the last two episodes. The notes for this episode are linked in the description.

Quick reference

  • Free plan: Credits, no surprise charges while learning
  • Root: MFA on, no access keys, used only for rare tasks
  • IAM: Admins group, your admin user with MFA
  • Budgets: Zero spend + monthly budget alerts
  • CLI: aws sts get-caller-identity works

Practice

  1. Create a second IAM user with only ReadOnlyAccess, log in, and try to create something. Watch it fail.
  2. Read the JSON of the AdministratorAccess and ReadOnlyAccess policies.
  3. Run aws s3 ls and aws ec2 describe-regions from the CLI.

Next episode

Episode 4: EC2, launching your first server and serving a web page.

Key takeaways

  • Turn on MFA for the root user, create no root access keys, and use it only for rare tasks
  • Do daily work as an IAM admin user with MFA, and follow least privilege
  • Create a zero-spend and a monthly budget alert before you build anything
  • Access keys are passwords for programs: never commit or share them