Training Trains Group · one group, 3 companies
← Knowledge Hub

AWS · Storage

Amazon S3

Object storage for any amount of data, accessed over HTTP(S) instead of a filesystem.

What is it?

Amazon Simple Storage Service (S3) is object storage: you store files ("objects") inside containers called buckets, each identified by a key (its path-like name). Unlike a traditional disk, there is no fixed capacity limit and no server to manage.

Why it matters

S3 is the default place to put anything that isn't a live database row: uploaded files, backups, static website assets, logs, data lake input, ML training data. It's durable (designed for 99.999999999% durability), pay-for-what-you-use, and integrates with almost every other AWS service.

Business use cases

  • Hosting static website assets (images, video, downloads, a static site itself)
  • Application file uploads (user avatars, documents, generated reports)
  • Backup and archival storage, including cold-storage tiers
  • A landing zone for data lakes and analytics pipelines
  • Storing build artifacts and deployment packages

How it works

You create a bucket in a specific AWS region, then read/write objects into it via the S3 API, SDKs, or the console. Access is controlled by IAM policies, bucket policies, and (optionally) per-object ACLs. Objects can be versioned, encrypted, replicated across regions, and moved automatically between storage classes (e.g. Standard → Infrequent Access → Glacier) via lifecycle rules.

When to use it

  • You need to store files that don’t fit a relational/NoSQL database model
  • You want durable, regionally-replicated storage without managing servers
  • You need to serve static assets directly or via a CDN (CloudFront)

When not to use it

  • You need a real filesystem with POSIX semantics for an application expecting one — look at EFS instead
  • You need millisecond, high-frequency small reads/writes like a database — use RDS/DynamoDB
  • You need block storage for a running EC2 instance’s OS disk — use EBS

Alternatives

Google Cloud Storage, Azure Blob Storage, Self-hosted object storage (MinIO)

Pricing concepts

S3 charges for storage (per GB per month, varying by storage class), requests (per PUT/GET/LIST), and data transfer out to the internet. Storage class choice is the biggest lever: infrequently accessed data in a colder tier can cost a fraction of Standard, at the cost of retrieval latency or fees. Exact current rates should always be checked in the AWS pricing calculator, not assumed.

Security

  • Buckets are private by default — public access must be explicitly enabled and is usually a misconfiguration risk to guard against
  • Use IAM policies and bucket policies to grant least-privilege access rather than making a bucket public
  • Enable default encryption at rest (SSE-S3 or SSE-KMS)
  • Enable versioning on buckets holding anything you can’t afford to lose to accidental deletion or overwrite
  • Use S3 Block Public Access at the account level unless you have a specific, reviewed reason not to

Setup guide

  1. Choose a globally-unique bucket name and a region close to your users/compute
  2. Create the bucket with default encryption and versioning enabled, and Block Public Access on
  3. Attach an IAM policy to the application/service that needs access, scoped to that bucket only
  4. If serving public assets, put a CDN (e.g. CloudFront) in front rather than making the bucket public
  5. Add a lifecycle rule if objects should transition to cheaper storage classes or expire over time

Best practices

  • Never hardcode AWS credentials in application code — use IAM roles
  • Turn on S3 access logging or CloudTrail data events if you need an audit trail of who accessed what
  • Use lifecycle rules instead of manually deleting old objects
  • Separate buckets by environment (dev/staging/prod) and by data sensitivity

FAQ

Is S3 a database?

No. It stores whole objects (files), not rows or documents you can query by field. Use RDS, DynamoDB, or a data warehouse for queryable data.

Can I mount an S3 bucket as a drive?

Not natively with POSIX semantics. Tools exist to approximate this (e.g. s3fs), but for a true filesystem, Amazon EFS is the right service.

Last reviewed: 2026-09-20