RousselTMLEARNING

Cloud computing

Storage on AWS: S3, EBS, EFS and backup

Store data on AWS: Amazon S3 (buckets, storage classes, versioning, lifecycle, encryption, policies and public access blocking), EBS volumes, EFS file systems, and backup with AWS Backup.

1. Choosing the storage type #

Objects, blocks, files.

Overview #

S3, EBS and EFS
S3 for application files and backups, EBS for instance disks, EFS for sharing between instances.
ServiceAccessDurability and scopeTypical case
S3API (HTTP)11 nines of durability, regionalImages, exports, backups, data lake, static site
EBSAn instance's diskReplicated within an AZ, snapshots to S3System, database on EC2
EFSNFS, several instancesRegional (multi-AZ)Shared content, user directories

2. Amazon S3 #

Object storage.

Classes and lifecycle #

S3 storage classes
A lifecycle rule automatically moves objects to cheaper classes.
{
  "Rules": [{
    "ID": "archiver-exports", "Status": "Enabled", "Filter": { "Prefix": "exports/" },
    "Transitions": [{ "Days": 30, "StorageClass": "STANDARD_IA" }, { "Days": 180, "StorageClass": "DEEP_ARCHIVE" }],
    "Expiration": { "Days": 2555 }
  }]
}

Securing a bucket #

  • Block public access enabled (default on new buckets); publish through CloudFront if needed.
  • Default encryption (SSE-S3 or SSE-KMS), deny non-TLS requests in the bucket policy.
  • Versioning to undo a deletion or overwrite, and Object Lock for immutability (anti-ransomware).
aws s3 mb s3://rapports-prod-123456 --region eu-west-3
aws s3api put-bucket-versioning --bucket rapports-prod-123456 --versioning-configuration Status=Enabled
aws s3 cp rapport.pdf s3://rapports-prod-123456/2026/ --sse aws:kms
aws s3 sync ./site s3://site-statique-123456 --delete
aws s3 presign s3://rapports-prod-123456/2026/rapport.pdf --expires-in 900   # lien temporaire

3. EBS, EFS and backup #

Disks, shares and protection.

EBS volumes #

TypeUsage
gp3General purpose: IOPS and throughput adjustable independently of size
io2Demanding databases, high and guaranteed IOPS
st1 / sc1Large sequential volumes at low cost
aws ec2 create-snapshot --volume-id vol-0abc --description "avant mise à jour"
aws ec2 modify-volume --volume-id vol-0abc --size 200 --volume-type gp3

AWS Backup #

AWS Backup centralizes backups (EBS, RDS, DynamoDB, EFS, S3) in plans with retention, cross-region or cross-account copies and locked vaults.

Common mistake: A backup only exists if its restore has been tested: schedule restore tests.

Related articles

Observability on AWS: CloudWatch, X-Ray, Application Signals, ADOT, Managed Prometheus and Grafana

A complete overview of observability on AWS: CloudWatch components (metrics, logs, alarms, Application Signal…

Understanding AWS: global infrastructure, accounts, tools and pricing

The essential basics for getting started with Amazon Web Services: regions, availability zones and points of …

IAM: identities, roles and policies on AWS

Secure access to AWS with IAM: users, groups, roles and JSON policies, permission evaluation, MFA, IAM Identi…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!