S3 is AWS object storage. It stores files as objects inside buckets.

Object storage

S3 is not a normal filesystem and not a relational database. It is designed for storing objects like:

Each object has data, metadata, and a key.

Buckets and keys

A bucket is the top-level container. An object key is the object's path-like name.

Example:

bucket: learning-atlas-uploads
key: users/42/avatar.png

S3 keys look like folders, but they are object names.

Access control

By default, keep buckets private.

Common access patterns:

Avoid making a whole bucket public unless there is a clear reason.

Versioning

S3 versioning keeps previous versions of objects.

It helps recover from:

Versioning can increase storage cost, so lifecycle rules matter.

Lifecycle rules

Lifecycle rules can move or delete objects automatically.

Examples:

Backend use cases

Quick revision