Techniques
Website
β’ S3 can host static websites and have them accessible on the Internet
β’ The website URL will be (depending on the region)
http://bucket-name.s3-website-aws-region.amazonaws.com OR
http://bucket-name.s3-website.aws-region.amazonaws.com
β’ If you get a 403 Forbidden error, make sure the bucket policy allows public reads!
Versioning
β’ You can version your files in Amazon S3
β’ It is enabled at the bucket level
β’ Same key overwrite will change the βversionβ: 1, 2, 3....
β’ It is best practice to version your buckets
Protect against unintended deletes (ability to restore a version)
Easy roll back to the previous version
β’ Notes:
Any file that is not versioned prior to enabling versioning will have version βnullβ
Suspending versioning does not delete the previous versions

Replication (CRR & SRR)
β’ Must enable Versioning in source and destination buckets
β’ Cross-Region Replication (CRR)
β’ Same-Region Replication (SRR)
β’ Buckets can be in different AWS accounts
β’ Copying is asynchronous
β’ Must give proper IAM permissions to S3
β’ Use cases:
CRR β compliance, lower latency access, replication across accounts
SRR β log aggregation, live replication between production and test accounts

Storage Classes
β’ Amazon S3 Standard - General Purpose
β’ Amazon S3 Standard-Infrequent Access (IA)
β’ Amazon S3 One Zone-Infrequent Access
β’ Amazon S3 Glacier Instant Retrieval
β’ Amazon S3 Glacier Flexible Retrieval
β’ Amazon S3 Glacier Deep Archive
β’ Amazon S3 Intelligent Tiering
β’ Can move between classes manually or using S3 Lifecycle configurations
Durability and Availability
β’ Durability:
High durability (99.999999999%, 11 9βs) of objects across multiple AZ
If you store 10,000,000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000 years
Same for all storage classes
β’ Availability:
Measures how readily available a service is
Varies depending on storage class
Example: S3 standard has 99.99% availability = not available 53 minutes a year
S3 Standard β General Purpose
99.99% Availability
Used for frequently accessed data
Low latency and high throughput
Sustain 2 concurrent facility failures
Use Cases: Big Data analytics, mobile & gaming applications, content distribution...
S3 Storage Classes β Infrequent Access
β’ For data that is less frequently accessed, but requires rapid access when needed
β’ Lower cost than S3 Standard
β’ Amazon S3 Standard-Infrequent Access (S3 Standard-IA)
99.9% Availability
Use cases: Disaster Recovery, backups
β’ Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA)
High durability (99.999999999%) in a single AZ; data lost when AZ is destroyed
99.5% Availability
Use Cases: Storing secondary backup copies of on-premise data, or data you can recreate
Amazon S3 Glacier Storage Classes
β’ Low-cost object storage meant for archiving / backup
β’ Pricing: price for storage + object retrieval cost
β’ Amazon S3 Glacier Instant Retrieval
Millisecond retrieval, is great for data accessed once a quarter
Minimum storage duration of 90 days
β’ Amazon S3 Glacier Flexible Retrieval (formerly Amazon S3 Glacier):
Expedited (1 to 5 minutes), Standard (3 to 5 hours), Bulk (5 to 12 hours) β free
Minimum storage duration of 90 days
β’ Amazon S3 Glacier Deep Archive β for long-term storage:
Standard (12 hours), Bulk (48 hours)
Minimum storage duration of 180 days
S3 Intelligent-Tiering
β’ Small monthly monitoring and auto-tiering fee
β’ Moves objects automatically between Access Tiers based on usage
β’ There are no retrieval charges in S3 Intelligent-Tiering
β’ Frequent Access tier (automatic): default tier
β’ Infrequent Access tier (automatic): objects not accessed for 30 days
β’ Archive Instant Access tier (automatic): objects not accessed for 90 days
β’ Archive Access tier (optional): configurable from 90 days to 700+ days
β’ Deep Archive Access tier (optional): config. from 180 days to 700+ days
Storage Classes Comparison

Example: us-east-1

S3 Encryption

IAM Access Analyzer for S3
β’ Ensures that only intended people have access to your S3 buckets
β’ Example: publicly accessible bucket, bucket shared with other AWS account...
β’ Evaluates S3 Bucket Policies, S3 ACLs, S3 Access Point Policies
β’ Powered by IAM Access Analyzer

Last updated