Set up your AWS account safely

A careful AWS account setup takes about an hour, and it protects you from the two things that hurt beginners most: a stolen account and a surprise bill. Here you’ll create the lab account you’ll use for the whole course and lock it down before you launch anything in it.

You’ll pick between the Free plan and the Paid plan, put MFA on the root user, set contacts and two budgets, choose your Region, and finally confirm all of it from AWS CloudShell with three commands.

TimeYou needBy the end you can
60 minutesAn email address you’ll keep for years, a mobile phone, a debit or credit card for verification, and an authenticator app or a passkey.Create an AWS account, secure the root user, make sure an email reaches you before you spend money, and check the whole setup from CloudShell.

What it is, in one line

AWS account setup means creating the account, locking the root user with MFA and adding budget alerts, all before you build anything.

In Simple Words

The master key and the electricity meter

When you move into a new house, you’re handed one master key that opens every door, even the safe. You don’t carry it around; you lock it in a cupboard and get ordinary keys cut for daily use. On day one you also take a look at the electricity meter, because if the bill suddenly doubles you’d rather find out this week than when the bill turns up. In AWS the root user is that master key and budgets are the meter, so in this lesson you lock the key away and connect the meter to your phone.

Engineer's View

What you are really creating

An AWS account is a container for resources, and it’s also a billing boundary and a security boundary. Resources in one account can’t see another account unless you allow it, which is why companies run many accounts (production, test, security, logs). You’ll start with one.

The root user is the email and password you sign up with. It can do everything, including closing the account and changing the payment method, and no IAM policy can limit it. Since June 2025 AWS has required MFA on root users for all account types. You’ll use root only for a handful of account-level jobs, and your daily work will go through IAM Identity Center (Lesson 6).

Plans and credits: at sign-up, new accounts pick a Free plan or a Paid plan. Both get USD 100 in credits, plus up to USD 100 more when you complete set-up activities. On the Free plan nothing is charged until you upgrade, but the plan ends after six months or once the credits are used up, and it doesn’t include some services this course needs later (DMS, FSx, Site-to-Site VPN, Organizations). AWS keeps a Free plan account’s data for 90 days after the plan ends, so you can still upgrade. These rules change, so read the AWS Free Tier FAQs on the day you sign up.

Budgets keep an eye on your spend and email you. A zero spend budget warns you as soon as you spend anything beyond the Free Tier limits, and a monthly cost budget warns you before you cross an amount you pick. Budgets with email alerts cost nothing, but keep in mind they only alert you and won’t put a hard limit on spending.

How it works, step by step

Do these in order, because each step closes a door before the next one opens another.

1Sign up and choose a plan

Use an email address you’ll control for years, ideally one kept only for AWS (for example yourname+awslab@gmail.com). A company account should use a team mailbox and never one person’s address. If your billing address is in India, AWS usually sets up the account with Amazon Internet Services Pvt. Ltd. (AISPL) and bills in rupees; the steps are the same.

AWS account setup: six steps for the first hour in a new account

2Lock the root user

Add an MFA device to root, which can be a passkey, a security key or an authenticator app. Never create access keys for root. Keep the root password in a password manager and note down where the MFA device is kept.

3Add alternate contacts

AWS sends billing, security and operations messages to these addresses, so if a key leaks, the warning lands with someone who reads email instead of sitting in an old inbox.

4Create two budgets

Think of the zero spend budget as a smoke alarm and the monthly cost budget (say USD 5) as a fuel gauge. Both of them email you.

5Choose your Region and check from CloudShell

Switch the console to Asia Pacific (Mumbai), ap-south-1, or whichever Region is closest to you. Then open CloudShell, a terminal in the browser that already has the AWS CLI installed, and check your setup with commands rather than trusting what the screen shows.

Decide on your plan before you sign up. The comparison below shows why the Free plan is a good place to start but won’t take you through the whole course.

AWS account setup: Free plan compared with Paid plan

What we suggest is to start on the Free plan, since you can’t be charged while you work through Phases 0 and 1. When you reach Lesson 22 (FSx for Windows), upgrade to the Paid plan, keep your budgets switched on, and delete everything at the end of each lab.

✅ Checkpoint: You can explain what the root user is, why it needs MFA, and how the Free plan differs from the Paid plan.

Hands-on lab: AWS account setup, step by step

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Take your time with this part, because every later lesson assumes the account is set up this way. If the AWS screens look a little different from what you read here, go by the meaning rather than the exact button names.

1Create the account

Go to aws.amazon.com and choose Create an AWS account. Enter your email and an account name like saatvedha-lab. Once the email is verified, set a long root password, choose Free plan, and work through the contact, card and phone verification steps.

AWS sign-up plan choice screen with the Free plan selected and the Paid plan beside it
The plan choice during sign-up. Pick the Free plan for now and upgrade later, when the course tells you to.

2Turn on MFA for root

Sign in as the root user, open the account menu at the top right and choose Security credentials. Under Multi-factor authentication (MFA), choose Assign MFA device, pick a passkey, security key or authenticator app, and follow the steps. Then sign out and sign back in to make sure it works.

3Set alternate contacts

From the account menu, choose Account, scroll down to Alternate contacts and fill in Billing, Operations and Security. For a lab account it’s fine to put your own email in all three.

4Create the zero spend budget

Open Billing and Cost Management, then Budgets, then Create budget. Choose Use a template (simplified), pick Zero spend budget, name it zero-spend, add your email and choose Create budget.

5Create the monthly cost budget

Create a second budget from the Monthly cost budget template. Name it monthly-5usd, set the amount to 5 (USD) and add your email. AWS emails you when your actual spend, or the forecast, goes past that figure.

6Switch to Mumbai and open CloudShell

In the Region menu at the top right, choose Asia Pacific (Mumbai) ap-south-1. Then click the CloudShell icon (a small terminal symbol) in the top bar and wait until the prompt appears.

7Prove the setup with three commands

Type this at the CloudShell prompt:

aws sts get-caller-identity

You should see something like this (with your own 12-digit account number):

{
    "UserId": "123456789012",
    "Account": "123456789012",
    "Arn": "arn:aws:iam::123456789012:root"
}

The :root at the end of the ARN shows you’re signed in as the root user. After setup, this is the last time in the course you’ll work as root.

Next, check MFA and root access keys:

aws iam get-account-summary --query 'SummaryMap.{MFA:AccountMFAEnabled,RootKeys:AccountAccessKeysPresent}'

You should see this:

{
    "MFA": 1,
    "RootKeys": 0
}

MFA: 1 means root has an MFA device, and RootKeys: 0 means root has no access keys, which is what you’re hoping to see.

Last, list your budgets:

ACCT=$(aws sts get-caller-identity --query Account --output text)
aws budgets describe-budgets --account-id $ACCT --query 'Budgets[].[BudgetName,TimeUnit,BudgetType]' --output text

You should see something like this:

monthly-5usd    MONTHLY COST
zero-spend      MONTHLY COST
AWS account setup check in CloudShell: root MFA on, no root keys, two budgets
Example output from CloudShell. Your own account number will be different.

✅ Checkpoint: Root has MFA ("MFA": 1), there are no root access keys ("RootKeys": 0), and both budgets show up. Sign out of root once you’re done.

Break It, Then Fix It

CloudShell and the AWS CLI are strict about required parameters and about the exact spelling of field names. Miss a parameter and you get a clear error, but misspell a field and all you get is a quiet null.

1Break it: leave out a required parameter

Run this:

aws budgets describe-budgets

You’ll see this error:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

aws: error: the following arguments are required: --account-id

Fix: read the last line of the error. Budgets need the account ID, and that’s why the lab saved it in $ACCT first. Whenever you’re unsure which parameters a command needs, run aws budgets describe-budgets help.

2Break it: one wrong letter in a query

Run this, with a lowercase “a” in accountMFAEnabled:

aws iam get-account-summary --query 'SummaryMap.accountMFAEnabled'

You should see this:

null
AWS account setup break lab: missing --account-id and a case-sensitive query
Both errors in one CloudShell session. The usage message will match exactly, though your prompt will look different.

There’s no error at all. The --query option uses JMESPath, which is case-sensitive, so a field whose name is slightly off just doesn’t exist and comes back empty. A security check that prints null instead of 1 could make someone believe MFA is off, or worse, a script could read “not 0” as “fine”.

Correct the case and run it again:

aws iam get-account-summary --query 'SummaryMap.AccountMFAEnabled'

You should see this:

1

✅ Checkpoint: You hit the “arguments are required” error and fixed it, and you turned a silent null into 1 by matching the field name exactly.

This happened at work

The root email nobody could open

This was a small software company that had opened its AWS account years earlier using a developer’s personal email for root. That developer left, nobody changed the email, nobody had the MFA device, and no alternate contacts had ever been set.

One Saturday, someone used an access key that had been pushed to a public code repository to start large EC2 instances in several Regions and mine cryptocurrency. AWS did send warnings to the root email and opened a support case, but all of it went to the old inbox. The team only found out on Tuesday, when the credit card was declined for a bill many times bigger than usual.

It took days of identity checks with AWS Support to get back into root. After that the company changed four things: the root email moved to a team mailbox, the MFA devices went into a safe with two named owners, alternate contacts were filled in, and every account got a monthly budget and a zero spend budget that sent alerts to the team chat.

Common mistakes and troubleshooting

MistakeWhat happensWhat to do
Using a personal or shared-by-everyone email for rootNobody can get back into the account once that person leavesUse a team mailbox you will keep; note who owns it
Creating access keys for rootA leaked key can do anything, even close the accountNever create them. If one exists, delete it today
Doing daily work as rootEvery mistake has full power behind itUse root only for setup; Lesson 6 gives you a daily user
Thinking a budget stops spendingAlerts arrive but resources keep running and costingA budget is only an alarm, so delete resources after every lab
Choosing the Free plan and planning to do the whole course on itLessons 22, 33, 37 and 47 need services the Free plan doesn’t includeUpgrade to the Paid plan before Lesson 22, keep budgets on
Ignoring the Region selectorResources appear “missing” or get created far awayCheck the Region every time you open the console

Interview questions

Click a question to open it. Each one is worded the way an interviewer might ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. Can you tell me in simple words what the AWS root user is, and why you wouldn’t use it every day?

Why they ask this: They want to know you understand the most powerful identity in an account and how you’d protect it.

How you might answer: The root user is the identity that gets created with the account email. It can do everything, billing and closing the account included, and IAM policies can’t restrict it. So I put MFA on it, I never create access keys for it, and I do my daily work as an IAM Identity Center user.

2. You’ve just opened a new AWS account for practice. How would you make sure you don’t get a surprise bill?

Why they ask this: They’re checking that you think about cost from the first day and that you know alerts on their own don’t save any money.

How you might answer: On the first day I’d set up budgets with email alerts, one zero spend budget and one monthly budget. I’d tag my resources and look at Cost Explorer once a week. Budgets only send alerts, though, so I’d still delete my lab resources as soon as I’m done with them.

3. How would you explain to a non-technical friend what MFA protects them from?

Why they ask this: They want to see that you get the basic security idea and can explain it plainly, because explaining things simply is part of the job.

How you might answer: I’d tell them MFA protects you when someone steals or guesses your password. To sign in, the attacker would also need your phone, security key or passkey, so the password on its own isn’t enough.

2–5 years experience

4. A teammate tells you, “I set a 50 dollar budget, so we can never spend more than 50.” What would you say to them?

Why they ask this: They want to be sure you know budgets are alerts and not spending limits. People get real surprise bills from this mistake.

How you might answer: I’d tell them that isn’t how it works. A budget sends an alert when actual or forecast spend crosses a threshold, but the resources keep running. If they want something to happen automatically, they need budget actions, like applying a deny policy, or their own automation, and someone still has to clean up afterwards.

5. How would you check that the root user has MFA and no access keys, without opening the console?

Why they ask this: They want to see that you use the CLI for checks you can repeat. If a check can be scripted, you’ll actually run it every week.

How you might answer: I’d run aws iam get-account-summary and look at two values: AccountMFAEnabled should be 1 and AccountAccessKeysPresent should be 0. Since it’s a single command, it’s easy to drop into a weekly check script.

6. Why do companies bother keeping production and test in separate AWS accounts? Isn’t one account simpler?

Why they ask this: They’re checking that you see an account as a security and billing boundary, which tells them whether you think about limiting damage.

How you might answer: An account is a security and billing boundary, so if someone makes a mistake in test, or a test user gets compromised, production resources are out of reach. It also makes costs easy to split, and I can put stricter rules on production without slowing test down.

Senior level

7. You take over an AWS account and nobody knows the root password. What do you do?

Why they ask this: They want to see how calmly you deal with a real account-recovery problem and what you’d lock down while recovery is going on.

How you might answer: I’d start by finding out who controls the root email. If we control it, I’d do a password reset and register a new MFA device through the recovery process, and if we don’t, I’d open a case with AWS Support so they can verify ownership. In the meantime I’d make sure IAM admin access exists and set alternate contacts and budgets. Later on I’d move the account into AWS Organizations with centralised root management.

8. A new company asks you to set up their first AWS accounts. Walk me through what you’d do on day one.

Why they ask this: They want to see you think beyond one account and plan for security, logs and cost right from the start. It’s a test of design judgement.

How you might answer: I’d create the management account with a team mailbox and MFA, then switch on AWS Organizations. I’d make separate accounts for production, test, security tools and logs, and use IAM Identity Center for people. Every account would get budgets and CloudTrail, and then I’d apply service control policies that block risky actions, like leaving the organization or turning off CloudTrail.

Quick quiz

Q1. Which identity can close an AWS account and change its payment method?

  1. Any IAM user with AdministratorAccess
  2. The root user
  3. An IAM role
  4. The billing contact
Show answer

B: the root user has complete access, including account-level tasks that no IAM permission can grant.

Q2. Your query returns null instead of 1. What is the most likely cause?

  1. MFA is off
  2. The field name in the query has the wrong case
  3. CloudShell is broken
  4. The account is new
Show answer

B: JMESPath is case-sensitive, so a misspelled field comes back as null without any error.

Q3. What does a monthly cost budget do when you pass the amount?

  1. Stops all resources
  2. Deletes resources
  3. Sends an alert
  4. Blocks new sign-ins
Show answer

C: budgets only send alerts, and resources keep running unless you do something about them.

Q4. Which service from this course is not included in the Free plan?

  1. Amazon EC2
  2. AWS CloudShell
  3. Amazon FSx
  4. AWS Backup
Show answer

C: FSx (along with DMS, Site-to-Site VPN and Organizations) needs the Paid plan.

Q5. How many root access keys should your account have?

  1. One, for scripts
  2. Two, for rotation
  3. Zero
  4. As many as admins
Show answer

C: root access keys are far too powerful to risk, so scripts use IAM roles or IAM Identity Center credentials instead.

Quick recap

  • The root user is the master key, so it gets MFA, no access keys, and is used only for setup.
  • The Free plan charges nothing until you upgrade, ends after six months or when the credits run out, and leaves out some services, so upgrade before Lesson 22.
  • Alternate contacts make sure AWS warnings reach a real person.
  • Two budgets (zero spend and USD 5 monthly) email you early, but remember they only alert and don’t stop spending.
  • CloudShell confirmed the setup with get-caller-identity, get-account-summary and describe-budgets.

Next lesson

Lesson 3: Your AWS lab toolkit: CLI, CloudShell, profiles → Next you’ll install the AWS CLI on your laptop and connect it to this account safely.

Further reading: AWS account setup

If you want to go further with AWS account setup, AWS’s own checklist is in Root user best practices for your AWS account, and the budget templates are explained in Using a budget template. The full plan for this course is on the AWS Cloud Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.