Learn about new and existing Amazon S3 features that can help you better protect your data, save on cost, and improve usability, security, and performance.
This webinar will cover a wide variety of Amazon S3 features and go into depth on several newer features so you can apply the learnings to your object storage workloads.
Learning Objectives:
• In-depth learning on both new and existing Amazon S3 features
• Best practices for improving usability, security and performance
• Leveraging lifecycle management to optimize storage costs
Who Should Attend:
• Developers, system administrators
2. Amazon S3: Year in Review
Advanced Capabilities 2014-2015
Server Side Encryption for KMS
Lifecycle Management for Versioning
Cross Region Replication
VPC Private Endpoints
New for July 2015
• Amazon S3 Delete event notifications
• CloudWatch metrics for S3 Storage
• Bucket limit increase
4. S3 Server-side encryption options
SSE with Amazon S3 managed keys
“Check-the-box” to encrypt your data at rest
SSE with customer provided keys
You manage your encryption keys and provide them for PUTs and GETS
SSE with Amazon Key Management Service managed keys
Keys managed centrally in AWS KMS with permissions and auditing of
usage
5. SSE using KMS
Amazon S3 AWS KMSRequest
Policy
Keys managed centrally in Amazon KMS with permissions and auditing of usage
7. Preserve, retrieve, and restore every version of
every object stored in your bucket
S3 automatically adds new versions and
preserves deleted objects with delete markers
Easily control the number of versions kept by
using lifecycle expiration policies
Easy to turn on in the AWS Management Console
Key = photo.gif
ID = 121212
Key = photo.gif
ID = 111111
Versioning
Enabled
PUT
Key = photo.gif
S3 versioning
8. Use Amazon Glacier
for lowest-cost, durable cold
storage of archival data
Use Amazon S3
for reliable, durable
primary storage
Use Amazon S3 Reduced
Redundancy Storage
for secondary backups
at a lower cost
RRS
Optimize your storage spending by tiering on AWS
9. Key prefix “logs/”
Transition objects to Glacier 30 days after creation
Delete 365 days after creation date
<LifecycleConfiguration>
<Rule>
<ID>archive-in-30-days</ID>
<Prefix>logs/</Prefix>
<Status>Enabled</Status>
<Transition>
<Days>30</Days>
<StorageClass>GLACIER</StorageClass>
</Transition>
<Expiration>
<Days>365</Days>
</Expiration>
</Rule>
</LifecycleConfiguration
S3 lifecycle policies
11. Source
(Virginia)
Destination
(Oregon)
• Only replicates new PUTs. Once
S3 is configured, all new uploads
into a source bucket will be
replicated
• Entire bucket or prefix based
• 1:1 replication between any 2
regions
• Versioning required
Use cases
Compliance - store data hundreds of miles apart
Lower latency - distribute data to regional customers)
Security - create remote replicas managed by separate AWS accounts
S3 cross-region replication
Automated, fast, and reliable asynchronous replication of data across AWS regions
12. Details on Cross-Region Replication
Versioning - Need to enable S3 versioning for the source and destination
buckets.
Lifecycle Rules - You can choose to use Lifecyle Rules on the destination
bucket to manage older versions by deleting them or migrating them to Amazon
Glacier.
Determining Replication Status - Use the HEAD operation on a source
object to determine its replication status.
Region-to-Region - Replication always takes place between a pair of AWS
regions. You cannot use this feature to replicate content to two buckets that are in
the same region.
New Objects - Replicates new objects and changes to existing objects. Use S3
COPY to replicate existing objects
14. Prior to S3 VPCE
S3 virtual private endpoint (VPCE)
Using S3 VPCE
Public IP on EC2 Instances and IGW
Private IP on EC2 Instances and NAT
Access S3 using S3 Private Endpoint (VPE)
without using NAT instances or Gateways
Increased security
Amazon S3
S3
15. Creating and using VPCE
Open the VPC Dashboard and
Select the desired region.
Locate the Endpoints item in the
navigation bar and click on it
16. Creating and using VPCE
If you have already created some VPC
Endpoints, they will appear in the list:
17. Creating and using VPCE
Now click on Create Endpoint,
choose the desired VPC, and
customize the access policy
(if you want):
18. Creating and using VPCE
Now choose the VPC
subnets that will be allowed
to access the endpoint:
19. Security: Allow a specific VPC Endpoint access
to my S3 bucket and vice versa
{
"Id": "Policy1415115909152",
"Statement": [
{
"Sid": "Stmt1415115903450",
"Action": "s3:*",
"Effect": "Deny",
"Resource": ["arn:aws:s3:::my_secure_bucket",
"arn:aws:s3:::my_secure_bucket/*"]
"Condition": {
"ArnNotEquals": {
"aws:sourceVpe": " arn:aws:ec2:us-east-1:account:vpc/vpce-123abc"
}
},
"Principal": "*"
}
]
}
21. Amazon S3 event notifications
Delivers notifications to Amazon SNS, Amazon SQS, or AWS
Lambda when events occur in Amazon S3
S3
Events
SNS topic
SQS queue
Lambda function
Notifications
Support for notification when
objects are created via PUT,
POST, Copy, or Multipart
Upload.
Support for notification when
objects are deleted, as well
as with filtering on prefixes
and suffixes for all types of
notifications.
Foo() {
…
}
22. What’s in it for you?
Integration - A new surface on the
Amazon S3 “building block” for event-
based computing
Speed - typical time to send
notifications is less than a second
Simplicity - Avoids proxies or polling
to detect changes
Notifications
List/Diff
or
Proxy
25. S3 Storage Metrics
Monitor and set alarms on
Amazon S3 storage usage
through CloudWatch
Supported metrics include:
Total bytes for Standard Storage,
Total bytes for Reduced-Redundancy Storage
(RRS),
Total number of objects for a given S3 bucket.
27. Bucket limit increase
Up to 100 buckets by default
Prefixes (virtual directories) can sometimes be used instead of buckets
by assigning a specific prefix per user or project:
• examplebucket/UserStorage/GuyFarber/
• examplebucket/UserStorage/OmairGillani/
• Prefix support for bucket level policies such as lifecycle and
cross-region replication
Some use cases require dedicated buckets
• Region specific application deployments
• Charge-backs
• Life-cycle rule per user
28. Bucket limit increase
You can now increase your Amazon S3 bucket limit per
AWS account
Open a case to request additional buckets by visiting
AWS Support Center
29. Read-after-write consistency for the AWS US-
Standard region
Read-after-write consistency allows you to retrieve objects
immediately after creation in S3.
Now we have consistent consistency model across all AWS
regions
Previously: buckets in the US Standard Region provided
eventual consistency for newly created objects