main

AWS

S3 – Cross Region Replication

s3.png?fit=640%2C480

Notes for S3 – Amazon Solutions Architect Associate (AWS)

  • In order for cross region replication to work versioning will need to be enabled on the original bucket.
  • You can replicate the entire bucket or specific sub-folders.
  • On the bucket you are replicating too you can change the storage class.
  • Only new objects or objects that we update or change that will be replicated once replication has been enabled.
  • The best way to copy the contents of an existing bucket to a new one would be to use the command line too.
  • The regions that you create your buckets in must be unique, you cannot replicate a bucket that’s in the same region.
  • You cannot replicate to multiple buckets or daisy chain them at this time.
  • Deletion markers are replicated.
  • Deleting individual versions or delete markers will NOT be replicated.

AWS

S3 101 – Continued

s3.png?fit=640%2C480

Exam Tips for Creating an S3 Bucket

  • Buckets are a universal namespace, you cannot have the same name as someone else using aws because each bucket is assigned a unique DNS name.
  • Upload an object to S3 to receive a HTTP 200 code while uploading with command line utilities.
  • Encryption
    • Client Side Encryption.
    • Server Side Encryption.
      • Amazon S3 Managed Keys (SSE-S3)
      • KMS (SSE-KMS)
      • Customer Provided Keys (SSE-C)
  • Control access to buckets using either a bucket ACL or using Bucket Policies.
  • By Default Buckets are private and all objects stored within them.

 

S3 – Versioning Exam Tips

  • Stores all versions of an object (file) this includes all writes and even if you delete the object.
  • Great backup tool.
  • Once enabled, Versioning cannot be disabled only suspended.
  • Integrates with Lifecycle rules.
  • Versioning’s MFA delete capability, which uses Multi-Factor Authentication, can be used to provide an additional layer of security.

AWS

S3 101

s3.png?fit=640%2C480

Revision Notes for Amazon Solutions Architect Associate.

What is S3?

  • S3 is a safe place to store your files.
  • It is Object based storage, meaning you can store files such as images, videos and documents.
  • It is not a place to install an Operating System, for that you will need block based storage.
  • S3 is designed to withstand failure, Your data is spread across multiple devices and multiple facilities.
  • Your files can be anywhere from 0B in size all the way up to 5TB, storage is virtually unlimited.
  • ¬†Files are stored in Buckets which is essentially a Folder.
  • Names of Buckets MUST be unique, you cannot share the same name as another user.
  • Your buckets will be assigned a DNS name upon creating it, it will always begin with https://s3- and then the region you created your bucket in, https://s3-eu-west1.amazonaws.com/ and then this will be followed by your bucket name https://s3-eu-west1.amazonaws.com/appman
  • When you upload a file successfully into S3 you will receive a HTTP 200 code.

Data Consistency Model for S3

  • Read after write consistency for PUTS of new Objects. – Meaning when you put a new object in S3 you are going to get immediate consistency, you will be able to make changes straight away
  • Eventual Consistency for overwrite PUTS and DELETES (can take a while to propagate.)¬† – Meaning making changed or deleting older files will take a while as it will need to update all the disks / locations your files have been written too.

S3 is a simple key, value store

  • S3 is object based. objects consist of the following;
    • Key (This is simply the name of the object)
    • Value (This is the data and is made up of a sequence of bytes)
    • Version ID (Important for versioning)
    • Metadata (Data about the data you are storing)
    • Subresoruces
      • Access control lists
    • Torrent

The Basics

  • S3 is built for 99.99% availability.
  • Amazon Guarantee 99.9% up time.
  • Amazon Guarantee 99.999999999% durability for S3 Information. (What!?) You will never lose a file.
  • Tiered Storage Options Available.
  • LifeCycle Management, gives you the option to move or archive files to different areas of your buckets after a certain period of time.
  • Versioning, you can have 1 file with several different versions.
  • Encryption.
  • Secure your data with Policies and Access Control Lists.

Storage Classes / Tiers

  • S3 – 99.99% availability, 99.999999999% durability, stored redundantly across multiple devices and locations. It is designed to sustain the loss of 2 facilities concurrently.
  • S3 – IA (Infrequently Accessed.) For data that is access less frequiently, but requires rapid access when needed. there is a lower fee than S3 but you are charged a retrieval fee.
  • Reduced Redundancy Storage (RRS) – Designed to provide 99.99% durability and 99.99% availability of objects over a given year. – Best used for data you can generate again.
  • Glacier – Very cheap, but used for archival only. It takes 3 -5 hours to restore from Glacier.

What is Glacier?

Glacier is an extremely low-cost storage service for data archival. Amazon Glacier stores data for as little as $0.01 per gigabyte per month, and is optimized for data that is infrequently used, for which it will take 3 to 5 hours to retrieve a file.

S3 Vs Glacier

S3 – Charges – What are you charged for?

  • Storage
  • The number of requests
  • Storage Management Pricing
  • Data Transfer Pricing, uploading data is free but transferring to different regions are chargeable

What is S3 Transfer Acceleration?

Amazon S3 Transfer Acceleration enables fast, easy and secure transfers of files over long distances between your end users and an s3 bucket. Transfer Acceleration takes advantage of Aamzon CloudFront’s globally distributed edge locations. As the data arrives at an edge location, data is routed to Amazon S3 over an optimized network path.