Getting Started with AWS

This guide opens an AWS account and does the first real things with it:

  • Open the account and protect it.
  • Create an S3 bucket in the console and upload a file.
  • See the same bucket from CloudShell, then from the AWS CLI on your own computer.
  • Delete what you made.

It takes about an hour. The slides The AWS Console, CLI and SDKs explain the tools this guide uses.

Open an AWS account

AWS's own guide, Sign up for AWS (advanced), walks through every screen of the sign-up. Use that sign-up: this course needs the account's root user, and AWS's newer sign-up makes none.

The sign-up asks for:

  • An email address: it becomes the root user's login, and the way to recover the account.
    • Use an address only you read.
  • An account name, such as firstname-lastname-course.
  • A root password: keep it in a password manager.
  • A plan: choose the Free plan.
    • Up to $200 in credits, for six months, on some services.
    • A later lab may need the paid plan; we move to it then.
  • Contact details, and the AWS Customer Agreement.
  • A payment method: AWS refuses a sign-up without one, even on the free plan.
  • A phone number that can receive an SMS now, for an identity check.
  • A support plan: choose Basic support - Free.

The account is ready when AWS sends an email saying it is active: usually within minutes, at most 24 hours.

Sign in as the root user

  1. Open the AWS console.
    • The page opens on IAM user sign-in: the form for the users we create later.
  2. Click Sign in using root user email, and enter the root email address.
  3. Enter the root password.

The sign-in page: the IAM user form, and the Sign in using root user email button under it

Console Home opens: the start page of the console.

Console Home: the top bar, Recently visited, and the welcome cards

Turn on MFA for the root user

The root user can do anything in the account, so it gets a second factor before anything else.

  1. Open the account menu at the top right and click Security credentials.
  2. Under Multi-factor authentication (MFA), click Assign MFA device.

The Security credentials page, with the MFA section and its Assign MFA device button

  1. Name the device, such as root-phone.
  2. Choose the kind of device:
    • Passkey or security key: a fingerprint, a face or the screen lock, on this computer or a phone. AWS recommends it.
    • Authenticator app: a 6-digit code from an app such as Google Authenticator.
  3. Click Next, and follow the browser's prompts.
    • An authenticator app shows a QR code: scan it, then type two codes from the app, one after the other.

The three kinds of MFA device, with Passkey or security key selected

Set a zero-spend budget

A budget sends an email when the account starts to cost money.

  1. Type Budgets in the search bar and open it.
  2. Click Create budget.
    • Use a template (simplified) and Zero spend budget are already chosen.
  3. Scroll down, enter your email address under Email recipients, and click Create budget.

The budget templates, with Zero spend budget selected

Choose the Region

The Region selector at the top right picks where the console works. This course works in US East (N. Virginia), us-east-1.

  1. Click the Region selector.
  2. Choose US East (N. Virginia).

The Region selector open, with US East (N. Virginia) chosen

Find the S3 service

The console has three ways to reach a service.

  • The search bar: type s3, and pick S3 under Services.
    • Alt+S jumps to the search bar; on a Mac, Option+S.
    • The ☆ beside a result adds it to the favorites bar under the top bar.

The search bar with s3 typed, and S3 first under Services

  • The Services menu: the ▦ button left of the search bar.
    • Its left column lists the categories; Storage holds S3.

The Services menu open on the Storage category, with S3 among its services

  • Console Home: Recently visited lists the services we opened last, and the favorites bar holds the starred ones.

Create an S3 bucket

A bucket is a place for files in S3.

  1. In S3, click Create bucket.
  2. Keep General purpose and Global namespace.
    • A bucket name in the global namespace must be unique across all of AWS.
    • The other choice, Account Regional namespace, adds the account ID and the Region to the name.
  3. Enter a name with something of yours in it: getting-started-guide-20261112.
    • Lower-case letters, digits and dashes only.
  4. Keep every other setting as it is, scroll down, and click Create bucket.
    • The console opens the new bucket, still empty.

The Create bucket page, with the bucket name filled in

The new bucket's page, with a green banner and no objects

Upload a file to the bucket

  1. On the bucket's page, click Upload.
  2. Click Add files, and pick a small file: here, a text file named welcome.txt.

The Upload page, with welcome.txt in the list

  1. Scroll down and click Upload, then Close.
    • The bucket's Objects tab now lists the file.

The bucket's Objects tab, with welcome.txt

Open CloudShell

CloudShell is a Linux shell in the browser, signed in as you, with the AWS CLI installed.

  1. Click the >_ icon on the console's top bar.

    • CloudShell opens under the page, in the console's current Region.
  2. Wait for the $ prompt, then run:

     1$ aws sts get-caller-identity
     2{
     3    "UserId": "111122223333",
     4    "Account": "111122223333",
     5    "Arn": "arn:aws:iam::111122223333:root"
     6}
     7$ aws s3 ls s3://getting-started-guide-20261112
     82026-11-12 19:59:17         31 welcome.txt
     9$ aws s3 cp s3://getting-started-guide-20261112/welcome.txt -
    10Welcome to my first S3 bucket.
    
    • The first command names who we are: the root user.
    • The second lists the bucket.
    • The third prints the file: - as the target means the screen.

CloudShell under the S3 page, after the three commands

Install the AWS CLI on your computer

On Linux:

1$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
2$ unzip awscliv2.zip
3$ sudo ./aws/install
4You can now run: /usr/local/bin/aws --version
5$ aws --version

The version must be 2.32.0 or later, for aws login.

On macOS or Windows

Download the installer from AWS's install page and run it. Then open a new terminal and run aws --version.

Sign the CLI in with aws login

aws login signs the CLI in through the browser, with the account we just signed in to.

  1. Run:

    1$ aws login
    2Attempting to open your default browser. If the browser does not open, open the following URL.
    3If you are unable to open the URL on this device, run this command again with the '--remote' option.
    4
    5https://us-east-1.signin.aws.amazon.com/v1/authorize?response_type=code&client_id=...
    
    • If it asks for a Region first, answer us-east-1.
  2. The browser opens on Continue with an active session, showing the session we signed in to the console with. Click it.

    The aws login page in the browser: Continue with an active session, and Sign into new session under it

  3. Back in the terminal, the CLI is signed in for up to 12 hours.

We sign in as the root user only in this guide. The IAM part of the course creates an admin user, and from then on we use it instead.

Copy a file to the bucket from your computer

1$ aws sts get-caller-identity --query Arn --output text
2arn:aws:iam::111122223333:root
3$ echo "hello from my computer" > hello.txt
4$ aws s3 cp hello.txt s3://getting-started-guide-20261112/
5upload: ./hello.txt to s3://getting-started-guide-20261112/hello.txt
6$ aws s3 ls s3://getting-started-guide-20261112
72026-11-12 22:01:09         23 hello.txt
82026-11-12 21:59:17         31 welcome.txt

Click the refresh button (↻) on the bucket's page in the console: hello.txt is there too.

The bucket in the console, now with both files

Delete the bucket

The bucket costs almost nothing, but a lab ends clean.

1$ aws s3 rb s3://getting-started-guide-20261112 --force
2delete: s3://getting-started-guide-20261112/hello.txt
3delete: s3://getting-started-guide-20261112/welcome.txt
4remove_bucket: getting-started-guide-20261112
5$ aws logout
  • --force deletes the files first, since S3 refuses to delete a bucket that holds any.
  • Keep the MFA device and the budget: they protect the account from now on.