AWS Storage Services — S3, EBS, EFS, Glacier
Amazon S3 (Simple Storage Service)
Section titled “Amazon S3 (Simple Storage Service)”Object storage for any amount of data at web scale. S3 is the foundation of AWS storage — buckets hold objects (data + metadata + unique ID), and every bucket has a globally unique name.
S3 Storage Classes
Section titled “S3 Storage Classes”Different classes optimize for access patterns and cost:
| Class | Use Case | Retrieval |
|---|---|---|
| Standard | Frequent access, millisecond latency | Instant |
| Standard-IA | Infrequent access but need fast retrieval | Instant |
| One Zone-IA | Infrequent, single AZ, cost-optimized | Instant |
| Glacier Instant | Archive with instant retrieval | Instant |
| Glacier Flexible | Archive, can wait 3–5 hours | Minutes to hours |
| Glacier Deep Archive | Long-term archive, lowest cost | 12+ hours |
Lifecycle Policies
Section titled “Lifecycle Policies”Automate transitions between storage classes and set deletion rules. A common pattern: transition to Standard-IA after 30 days, Glacier after 90 days, delete after 365 days.
S3 Access Control
Section titled “S3 Access Control”Bucket policies define bucket-level access. IAM policies control principal access. ACLs provide legacy object-level control. Pre-signed URLs grant temporary, time-limited access to private objects for specific users or applications.
Encryption Options
Section titled “Encryption Options”- SSE-S3: AWS manages all keys. Simplest, no overhead.
- SSE-KMS: You control keys in AWS Key Management Service. CloudTrail logs all usage for compliance.
- SSE-C: You provide a key with every request. Highest control, your responsibility to manage key lifecycle.
Other S3 Features
Section titled “Other S3 Features”Versioning keeps multiple versions of objects — great for accidental overwrites. Cross-Region Replication (CRR) and Same-Region Replication (SRR) automate object copies for disaster recovery and data locality.
Amazon EBS (Elastic Block Store)
Section titled “Amazon EBS (Elastic Block Store)”Persistent block-level storage attached to EC2 instances in the same AZ. EBS volumes are durable but AZ-bound — you cannot attach an EBS volume across AZs.
EBS Volume Types
Section titled “EBS Volume Types”| Type | Use Case | Performance |
|---|---|---|
| gp2/gp3 | General purpose, most workloads | 3–16k IOPS |
| io1/io2 | High I/O databases, transaction workloads | Up to 64k IOPS |
| st1 | Throughput-optimized HDD for big data | 500 Mbps |
| sc1 | Cold HDD for archival, infrequent access | 250 Mbps |
EBS Snapshots
Section titled “EBS Snapshots”Point-in-time backups stored in S3 — but you can’t access them as S3 objects directly. Snapshots are incremental; only changed blocks are stored.
Amazon EFS (Elastic File System)
Section titled “Amazon EFS (Elastic File System)”Managed file storage that mounts on multiple EC2 instances simultaneously. EFS scales automatically as files are added or removed, and spans multiple AZs for high availability.
EFS Performance Modes
Section titled “EFS Performance Modes”- General Purpose: Default for most workloads, lowest latency.
- Max I/O: Optimized for highly parallelized workloads, higher latencies but better throughput.
EFS Storage Classes
Section titled “EFS Storage Classes”- Standard: For frequently accessed files.
- Infrequent Access: Lower cost, slightly higher retrieval latency — use lifecycle policies to auto-transition.
S3 Glacier and S3 Glacier Deep Archive
Section titled “S3 Glacier and S3 Glacier Deep Archive”Low-cost archival storage for compliance and long-term retention. Glacier Flexible is for infrequent retrieval; Deep Archive is for “never touch again” backups.
Retrieval Options
Section titled “Retrieval Options”| Option | Time | Use Case |
|---|---|---|
| Expedited | 1–5 minutes | Urgent retrieval |
| Standard | 3–5 hours | Normal archival |
| Bulk | 5–12 hours | Cost-optimized, batch jobs |
Storage Comparison Cheat Sheet
Section titled “Storage Comparison Cheat Sheet”| Dimension | S3 | EBS | EFS | Glacier |
|---|---|---|---|---|
| Type | Object | Block | File | Archive |
| Access | Web API | EC2 volume | Mount | Retrieval request |
| Scope | Regional/global | AZ-locked | Multi-AZ | Regional |
| Durability | 99.999999999% | 99.8–99.9% | High | 99.999999999% |
| Cost | $ | $$ | $$ (multi-AZ) | $ (archival) |
| Use Case | Backups, data lake, CDN | Boot volumes, databases | Shared storage, NFS | Long-term retention |