Stop 03 · AWS Account Setup & ToolsProjects · 1/1

Secure a Brand-New AWS Account

Part of the AWS Roadmap

In short

This is your first real AWS project and the one every cloud engineer should be able to do in their sleep: take a fresh account from sign-up to a safe, cost-controlled learning setup.

A first project where you take a fresh account from sign-up to a safe learning setup: root MFA, an admin user through IAM Identity Center, a budget alert, CloudTrail check and a configured CLI profile.

The jaadu fits a shiny new lock on the front door of an empty flat while a clipboard with a ticked checklist leans against moving boxes.

Think of it like this

Moving into a new flat

Before you unpack, you change the locks, give the spare key to someone you trust, check the electricity meter and note the gas leak number. Securing a new AWS account is the same short checklist done once, before you build anything inside.

Watch it happen

Your security checklist, ticked in order

enqueue(Root MFA)
Root MFA

Front of the queue is coloured

1/7Add MFA to root first. Everything else depends on root being safe.

The big ideas

What you need to know

Identity first

MFA on root and a separate admin identity stop most account takeovers.

Cost alarms second

A zero spend budget catches mistakes within hours.

Visibility third

CloudTrail records who did what. Event history keeps 90 days of management events for free.

Safe tooling last

A CLI profile with temporary credentials means no long-term keys sitting on your laptop.

How it works

Project steps

  1. 1

    Lock root

    Enable MFA, confirm no root access keys exist, store recovery details safely.

  2. 2

    Create admin

    Enable IAM Identity Center, add yourself, assign AdministratorAccess on this account.

  3. 3

    Watch costs

    Create zero spend and monthly budgets with email alerts.

  4. 4

    Check logs

    Open CloudTrail Event history and find your own sign-in events.

  5. 5

    Set up CLI

    Create an SSO profile and run the verification script below.

See it in code

Walk through the code

bash
1#!/bin/bash2# verify-account.sh  -  run with: AWS_PROFILE=lab-admin ./verify-account.sh3set -euo pipefail4 5echo "Signed in as:"6aws sts get-caller-identity --query Arn --output text7 8echo "Root MFA enabled (1 = yes):"9aws iam get-account-summary --query "SummaryMap.AccountMFAEnabled"10 11echo "Root access keys present (0 = good):"12aws iam get-account-summary --query "SummaryMap.AccountAccessKeysPresent"13 14ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)15echo "Budgets:"16aws budgets describe-budgets --account-id "$ACCOUNT_ID" \17  --query "Budgets[].BudgetName" --output text18 19echo "Recent API events:"20aws cloudtrail lookup-events --max-results 3 \21  --query "Events[].[EventTime,EventName,Username]" --output table

1/5Stop at the first error so a failed check is obvious.

A small script that proves your checklist is complete. Keep it in a Git repo for your next account.

Save yourself the pain

Common mistakes

Oops

Doing the checklist months after you start building.

Do this instead

Do it on day one. Attacks on new accounts with leaked credentials happen within minutes.

Oops

Giving your daily admin identity no MFA because root already has it.

Do this instead

Every human sign-in needs MFA, including your Identity Center user.

Your mission

Ship the secure account

~60 min

Quick check

Which value from aws iam get-account-summary shows that the root user has no access keys?

Go deeper

  1. 1Write a step-by-step checklist and follow it on your own account.
  2. 2Confirm with aws sts get-caller-identity that the CLI uses your admin identity, not root.
  3. 3Publish the checklist as a short GitHub README or blog post for other students.

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge