Académique Documents
Professionnel Documents
Culture Documents
● A process writes a new object to Amazon S3 and immediately lists keys within its bucket. Until the
change is fully propagated, the object might not appear in the list.
● A process replaces an existing object and immediately attempts to read it. Until the change is fully
propagated, Amazon S3 might return the prior data.
● A process deletes an existing object and immediately attempts to read it. Until the deletion is fully
propagated, Amazon S3 might return the deleted data.
● A process deletes an existing object and immediately lists keys within its bucket. Until the deletion is
fully propagated, Amazon S3 might list the deleted object.
Protecting Data
• In-transit
• SSL
• Client-side encryption
You request Amazon S3 to encrypt your object before saving it on disks in its
data centers and decrypt it when you download the objects.
Protecting Data
• At rest
• Server-side encryption
You request Amazon S3 to encrypt your object before saving it on disks in its
data centers and decrypt it when you download the objects.
• Client-side encryption
You can encrypt data client-side and upload the encrypted data to Amazon S3.
Hands On (CLI)
• List Buckets
aws s3 ls
• Making a bucket
aws s3 mb s3://{unique-bucket-name}
• Upload file to S3
aws s3 cp filename s3://{unique-bucket-name}/
aws s3 cp filename s3://{unique-bucket-name}/{destination-file-name}
Hands On (CLI)
• Renaming a file
aws s3 mv s3://{unique-bucket-name}/{old-name} s3://{unique-bucket-name}/
{new-name}
• Sync a folder
aws s3 sync folder-name s3://{unique-bucket-name}/{folder-name}
• Removing bucket
aws s3 rm s3://{unique-bucket-name}
Deepdive into Buckets
• Permissions
• Static Website Hosting
• Events
• Versioning
• LifeCycle
• Tags
• Requester Pays
Permissions
Permissions
Permissions
Permissions
Permissions
Permissions
Permissions
• Website addressing
• {bucket-name}.s3-website-{region}-amazonaws.com
Website Hosting
• Rerouting requests
Events
S3 -> Glacier
Lifecycle
S3 -> Glacier
LifeCycle
•
Tags
• Key, value pair that can be used for billing and query purposes.
Requester Pays
• No Minimum Fee
• Pay As You Go Model
• Charges for using S3 is based on the location
• Billed for
• storage(average),
• data transfer in and out and the
• number of requests per month.
Summary
• No need for capacity planning.
• No upfront cost.
• Data Protection.
• Unlimited Storage.
• Designed to provide 99.999999999% Durability and 99.99%
Availability
• You are fast, CLI is Faster
Questions
1. What is maximum size of object that can be stored on S3.
2. Create a bucket (CLI).
3. Add Objects to Bucket (CLI).
4. Add folders to Bucket (CLI).
5. Add objects within folder (CLI).
6. Make a file publically available for download.
7. Delete Couple of Objects (CLI).
8. Delete Folder (CLI).
9. Enable Versioning for Bucket.
10. Overwrite objects and try retrieving the older version.
11. Delete objects and try retrieving them.
12. Add Couple of HTML files to Bucket.
13. Serve added HTML pages (added in step 7) directly from S3 Bucket.
14. Create another bucket, enable Website hosting and redirect all request to previous bucket.
15. Create a bucket policy that allows only EC2 Servers to access files in bucket.
16. Create a bucket policy where user only has read-only access.
17. Create a bucket policy where user can only add objects but not delete.
18. Create a situation where only one of two users is able to access bucket and other is only able to read.