Amazon S3 Buckets (Simple Storage Service) are used to store objects and flat files in the Cloud.<\/p>\n\n\n\n
There is unlimited storage available, across 100 buckets, and files can be from 0 bytes to 5TB.<\/p>\n\n\n\n
Use cases<\/a>
How data is stored<\/a>
Storage Class Options<\/a>
Security<\/a>
Encryption<\/a>
Versioning<\/a>
Replication<\/a>
Getting started<\/a><\/strong><\/p><\/blockquote>\n\n\n\n
\n\n\n\nUse cases<\/h2>\n\n\n\n
Amazon S3 is one of the oldest services AWS<\/a> offers and is incredibly flexible with multiple ways to use it.<\/p>\n\n\n\n
Analytics \/ Data Lake<\/h4>\n\n\n\n
Uncouple storage and compute to scale either up or down as needed using Amazon Athena<\/a> as the query service over the top and AWS Glue <\/a>as a data catalogue.<\/p>\n\n\n\n
Archive<\/h4>\n\n\n\n
When data goes from ‘hot’, frequently accessed, to ‘cold’, infrequently accessed, it can be moved to Amazon Glacier<\/a> for a more cost-effective<\/a> option.<\/p>\n\n\n\n
Data Staging<\/h4>\n\n\n\n
Temporary data storage before being loading into AWS Redshift.<\/p>\n\n\n\n
Static Website<\/h4>\n\n\n\n
Host a website<\/a> using Amazon S3 for storage and Route 53<\/a> as the DNS.<\/p>\n\n\n\n
\n\n\n\nHow data is stored<\/h2>\n\n\n\n
Each S3 bucket needs a unique name and is formatted as:<\/p>\n\n\n\n
https:\/\/s3-(region).amazonaws.com\/(bucketname)<\/em><\/strong><\/center>\n\n\n\n Each object consists of:<\/p>\n\n\n\n
- Key (the name of the object),<\/li>
- Value (the data in the file itself made of bytes),<\/li>
- VersionID,<\/li>
- Metadata<\/li><\/ul>\n\n\n\n
Amazon S3 provides read after write consistently and eventual consistency for updates and deletes. Data is being replicated across at least three Availability Zones (AZs) and may take time to flow through.<\/p>\n\n\n\n
\n\n\n\nS3 Storage Class Options<\/h2>\n\n\n\n
S3<\/h4>\n\n\n\n
- The most expensive but most durable and reliable option for ‘hot’ data with 11 9’s of durability.<\/li>
- Cloud apps, big data<\/a> analytics, websites, content distribution.<\/li><\/ul>\n\n\n\n
S3: Infrequent Access<\/h4>\n\n\n\n
- For storing non-critical data that CANNOT be easily reproduced and needs to be retrieved quickly. Costs 50% less because of the reduced availability.<\/li>
- Disaster recovery, backups.<\/li><\/ul>\n\n\n\n
S3: Infrequent Access – One Zone<\/h4>\n\n\n\n
- For storing non-critical data that CAN be easily reproduced and needs to be retrieved quickly.<\/li>
- Useful for secondary backups as objects are only stored in one zone.<\/li>
- Cheaper than S3:IA as durability is reduced.<\/li><\/ul>\n\n\n\n
Glacier<\/h4>\n\n\n\n
- For long-term storage with a 3 – 5 hour retrieval time for ‘cold’ data.<\/li><\/ul>\n\n\n\n
Deep Glacier<\/h4>\n\n\n\n
- For long-term storage with a 12 hour retrieval time for ‘cold’ data.<\/li>
- Documents that need to be kept for compliance reasons for 7+ years.<\/li><\/ul>\n\n\n\n
\n\n\n\nSecurity<\/h2>\n\n\n\n
Amazon S3 is secure by default<\/a>. Each new bucket and the objects in it are private. To keep objects even more secure use bucket policies, similar to IAM policies<\/a> and Access Control Lists (ACL).<\/p>\n\n\n\n
\n\n\n\nEncryption<\/h2>\n\n\n\n
Client Side<\/h4>\n\n\n\n
The client encrypts the objects and uploads to Amazon S3.<\/p>\n\n\n\n
Server Side<\/h4>\n\n\n\n
The data is encrypted when written and decrypts when it is being used.<\/p>\n\n\n\n
- SSE-AES<\/strong> – S3 handles the key, uses AES-256 algorithm<\/li>
- SSE-KMS<\/strong> – Envelope encryption via AWS KMS and you manage the keys<\/li>
- SSE-C<\/strong> – Customer provided key (you manage the keys)<\/li><\/ul>\n\n\n\n
\n\n\n\nVersioning<\/h2>\n\n\n\n
- When versioning is turned on deleted files have a delete tag added which hides the file. To restore the file, delete the tag.<\/li>
- Each version takes up storage space, so a 1GB file edited three times with versioning on takes up 3GB of space.<\/li>
- Once turned on versioning can only be suspended, not removed.<\/li>
- Versions that are deleted on the other hand are actually deleted. Enabling Versioning MFA Delete gives extra protection as it requires MFA before a version can be deleted.<\/li><\/ul>\n\n\n\n
\n\n\n\nReplication<\/h2>\n\n\n\n
- Cross-Region Replication lets you automatically replicate the contents of a bucket from one region to another.<\/li>
- Existing files won\u2019t be copied until there\u2019s been a new version, which will also replicate all previous versions and permission.<\/li><\/ul>\n\n\n\n
\n\n\n\nGet started<\/h2>\n\n\n\n
The Free Tier<\/a> offers 12 months of free storage. This is more than enough to try out the service as a storage option or creating a static website.<\/p>\n\n\n\n
5 GB of Standard Storage
20,000 Get Requests
2,000 Put Requests<\/p>\n\n\n\n
\n\n\n\nUseful Links<\/h2>\n\n\n\n
S3 Documentation<\/a><\/p>\n\n\n\n
\n\n\n\nPhoto by Kaboompics .com<\/a><\/strong> from Pexels<\/a><\/strong> <\/p>\n","protected":false},"excerpt":{"rendered":"