Start here, before Part 1 of the Core Foundations series.

A new AWS account can do almost anything, and it bills you for all of it. The first hour you spend in it decides two things: how hard it is for someone else to get in, and how quickly you find out when something is costing money. Both are easy to get right at the start and painful to fix after an incident.

The mental model

You’re protecting three things:

What The risk The fix
The root user Full, unrestrictable control of the account, including closing it MFA, no access keys, then put it away
Your everyday access Long-lived credentials that leak Sign in with IAM Identity Center and short-lived credentials
The bill Something left running, or someone else’s crypto miner A budget with email alerts, set up before anything else

1. Lock away the root user

The root user is the email address and password you signed up with. IAM policies can’t limit it, so treat it like the deeds to a house: secure it, then leave it in a drawer.

  • Use an email address you’ll keep. A shared mailbox or an alias you control outlives a job change or a personal address you stop checking. Account recovery and AWS’s security notices go here.
  • Use a long, unique password from a password manager.
  • Turn on MFA. AWS now requires it for root users. A passkey or hardware security key is the strongest option, and you can register more than one device, so you have a backup.
  • Don’t create access keys for root. If any exist, delete them.
  • Set alternate contacts (billing, operations and security) under Account in the console, so AWS’s notices reach someone even if the root mailbox is missed.

You’ll rarely need root again. It’s only required for a short list of tasks, such as closing the account or changing its email address.

2. An everyday identity

For day-to-day work, sign in as someone else. The recommended way, even for a single personal account, is IAM Identity Center:

  1. Enable IAM Identity Center. It creates an AWS Organization with your account as the management account. Both are free.
  2. Create a user for yourself, and set up MFA when you first sign in.
  3. Create a permission set (start with AdministratorAccess for a personal sandbox) and assign it to your user for this account.
  4. Bookmark the AWS access portal URL Identity Center gives you. That’s your new sign-in page.

For the CLI, aws configure sso sets up a profile once, and aws sso login gets fresh credentials that expire on their own. No access keys sit on your laptop, which is the point: IAM explains why long-lived keys are the thing to avoid.

A simpler alternative: an IAM user with a console password and MFA, and AWS CloudShell for the CLI. It’s acceptable for a sandbox, as long as you don’t create access keys for it.

One setting catches everyone: non-root identities can’t see billing until the root user turns on IAM user and role access to Billing information on the Account page. Do it now, while you’re still signed in as root.

3. Guard the bill

Create a budget first. An AWS Budget emails you when actual or forecast spend crosses a threshold. A cost budget with email alerts costs nothing, and it’s the single most useful thing in this lesson. The hands-on below creates one.

Check Cost Anomaly Detection. Cost Anomaly Detection spots unusual spend by service, without you choosing a threshold. New accounts usually get a default monitor; check it’s there and that its alerts go to an address you read.

Understand your free tier. AWS changed its free tier for accounts created from 15 July 2025: new accounts get a credits-based free plan for their first six months, while older accounts keep the legacy 12-month free tier. Many services also have always-free allowances, such as Lambda requests and DynamoDB storage. The terms change, so read the current free tier details for your account rather than relying on a blog post (including this one). Either way, the free tier isn’t a spending limit: a budget is how you find out.

4. Pick a home Region

Most resources live in one Region. Pick one close to you and use it by default, so you always know where to look. In New Zealand, that’s Auckland (ap-southeast-6) or Sydney (ap-southeast-2), which offers more services; check that the services you need are available in a Region before you commit to it.

A few things always live in US East (N. Virginia), us-east-1, whatever your home Region: billing metrics, and the certificates CloudFront uses. You’ll meet both in the Cloud Starter project.

Hands-on: a budget as code

Budgets are easy to click together in the console, but as a CloudFormation template you can recreate the same guard rail in every account you ever open:

# budget.yaml
AWSTemplateFormatVersion: 2010-09-09
Description: Monthly cost budget with email alerts

Parameters:
  Email:
    Type: String
  MonthlyLimitUsd:
    Type: Number
    Default: 5

Resources:
  MonthlyBudget:
    Type: AWS::Budgets::Budget
    Properties:
      Budget:
        BudgetName: monthly-cost
        BudgetType: COST
        TimeUnit: MONTHLY
        BudgetLimit:
          Amount: !Ref MonthlyLimitUsd
          Unit: USD
      NotificationsWithSubscribers:
        - Notification: # half the budget already spent
            NotificationType: ACTUAL
            ComparisonOperator: GREATER_THAN
            Threshold: 50
          Subscribers:
            - SubscriptionType: EMAIL
              Address: !Ref Email
        - Notification: # the whole budget spent
            NotificationType: ACTUAL
            ComparisonOperator: GREATER_THAN
            Threshold: 100
          Subscribers:
            - SubscriptionType: EMAIL
              Address: !Ref Email
        - Notification: # on track to overspend this month
            NotificationType: FORECASTED
            ComparisonOperator: GREATER_THAN
            Threshold: 100
          Subscribers:
            - SubscriptionType: EMAIL
              Address: !Ref Email
aws cloudformation deploy \
  --template-file budget.yaml \
  --stack-name account-budget \
  --parameter-overrides Email=you@example.com

Then open Billing and Cost Management → Budgets and check that monthly-cost is there. Thresholds are percentages of the limit. US$5 is a sensible start for a learning account; raise it when you build something bigger, rather than ignoring the alerts.

Where surprise bills come from

Most surprise bills come from a short list:

  • NAT gateways bill by the hour even when idle, plus per gigabyte processed. A forgotten one costs tens of dollars a month. You’ll see why in VPC.
  • Instances and databases left running. EC2 and RDS bill while they run, whether you use them or not.
  • Things that outlive what they belonged to. Stopping or terminating an instance can leave EBS volumes, snapshots and public IPv4 addresses behind, and they all bill. See EC2.
  • Resources in another Region. The console only shows one Region at a time, so a test in the wrong Region is easy to forget. Cost Explorer grouped by Region finds them.
  • Leaked access keys. Keys pushed to a public repository are found within minutes and used to run crypto miners at your expense. The best defence is not having long-lived keys at all.

When an alert arrives, open Cost Explorer, group by service and then by Region, and work out what’s running. AWS Resource Explorer searches for resources across every Region at once.

Checklist

  • Root user: an email you’ll keep, a unique password, MFA, and no access keys
  • Alternate contacts for billing, operations and security
  • IAM access to billing information turned on
  • An everyday identity in IAM Identity Center (or an IAM user with MFA and no keys)
  • A monthly cost budget with email alerts
  • Cost Anomaly Detection alerts going to an address you read
  • A home Region chosen

Next: IAM: who can do what.

← Series overview