Skip to Content

Amazon S3

What Amazon S3 is for, buckets and how they're named, objects and keys, and the map of this group.

What it is

Amazon S3 (Simple Storage Service) is AWS's object storage. Files ("objects") go into containers ("buckets") and are read back over HTTPS, from anywhere, at any scale. AWS advertises it as storage that scales without limit: there's no disk to size and no space to run out of.

S3 is one of the main building blocks of AWS. Many websites are built on it, and many AWS services use it to store logs, backups, exports and data. Object storage is different from the block and file storage of the previous group: whole objects are read and written through an API, rather than attaching a disk to a server.

What people use it for

  • Backup and storage, disaster recovery and archive. For example, Nasdaq keeps seven years of data in S3 Glacier.
  • Hybrid cloud storage: extending on-premises storage into AWS.
  • Application and media hosting: images, video and downloads for apps and websites.
  • Data lakes and big data analytics. For example, Sysco runs analytics on its data in S3.
  • Software delivery and static websites.

Buckets

A bucket is a container for objects, a bit like a top-level folder.

  • Buckets are created in a Region. S3 looks global in the console, but every bucket and its data live in the chosen Region.
  • Names: a general purpose bucket name has to be unique across all accounts and all Regions (a shared global namespace). Buckets can now also be created in the account regional namespace: the name ends in -an and only the owning account can ever own it, which AWS recommends.
  • Naming rules:
    • 3 to 63 characters: lowercase letters, numbers, hyphens (and dots);
    • no uppercase letters and no underscores;
    • must start and end with a letter or number;
    • must not look like an IP address;
    • must not start with xn-- or end with -s3alias or --ol-s3.

Objects and keys

An S3 object key is the full path after the bucket name: the prefix photos/2026/ plus the object name beach.jpg; each object also has its value (up to 50 TB), metadata, up to 10 tags and, with versioning, a version ID An S3 object key is the full path after the bucket name: the prefix photos/2026/ plus the object name beach.jpg; each object also has its value (up to 50 TB), metadata, up to 10 tags and, with versioning, a version ID

A key is a prefix plus an object name.
  • Every object has a key: its full path inside the bucket, such as photos/2026/beach.jpg in s3://my-bucket/photos/2026/beach.jpg.
  • The key is a prefix (photos/2026/) plus an object name (beach.jpg).
  • There are no real directories. Keys are just long names that contain slashes. The console shows "folders" to make browsing easier, but S3 itself only has keys.

Each object has:

  • A value: the content, from 0 bytes up to 50 TB. A single upload (PUT) can be at most 5 GB; anything bigger must use multipart upload.
  • Metadata: key-value pairs, set by the system (content type, size) or by the user.
  • Tags: up to 10 key-value pairs, useful for permissions and lifecycle rules.
  • A version ID, if versioning is on.

Updated since the slides

For years the maximum object size was 5 TB. AWS raised it to 50 TB, which the slides already show. The account regional namespace for bucket names is also new: if a question asks how to make sure no one else can take an account's bucket names, that's the answer.

In this group

Basics

Storage classes and cost

Advanced

Security

Exam tips

  • "Store any amount of files cheaply, accessed over HTTP", "durable object storage" → S3.
  • "Object larger than 5 GB" → multipart upload (required). Largest object → 50 TB.
  • "Bucket names must be unique" → globally, unless the account regional namespace is used.
  • "S3 is global" in a question is a trap: buckets are Regional.

Common traps

  • "Create folders in S3." Folders are just key prefixes.
  • "Mount S3 as a disk on EC2 for a database." S3 is object storage; databases need block storage (EBS).
  • "Bucket names can use uppercase or underscores." They can't.

Hands-on lab: your first bucket

Goal: create a bucket, upload a file into a "folder", and see that the folder is just part of the key.

Costs money

Storing a few small files in S3 Standard costs less than a cent a month. Any Region works.

Create a bucket

S3 → Create bucket. Bucket type General purpose, name saa-lab-<your initials>-<random number> (it must be unique), Region us-east-1. Keep Block all public access on and the other defaults. Add the tag Project=saa-lab. Create.

Upload into a folder

Open the bucket → Create folder photos. Open it → Upload any small image. Open the object: look at its Key (photos/your-image.jpg), S3 URI, size, storage class and Server-side encryption (already on).

See that folders are only prefixes

In CloudShell, run:

aws s3api list-objects-v2 --bucket <your-bucket> --query 'Contents[].Key'

You get photos/ (the empty "folder" marker the console created) and photos/your-image.jpg: just keys.

Expected result: a private bucket with one object whose key includes its "folder".

Clean up: keep the bucket for the next labs, or Empty it and then Delete it.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt