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.

AWS

IAM – Revision Notes

iam-logo.png?fit=320%2C320

Some notes I have taken down for the AWS Solutions Architect Associate Exam.

  • IAM is Global it is not tied down to a region.
  • Amazons version of Active Directory.
  • You can define User, Role or Group Policies.
  • Policies can be added to a Groups, Users and Roles.
  • Can be integrated with Microsoft Active Directory.
  • Allows you to manage access to Compute, Storage, DB and Application Services.
  • Can be defined to only allow users access to what they require.
  • Multi Factor Authentication can be configured with AWS.
  • New Users have no access when first created. Users will need to be added to a group, given a role or have permissions set once the account is created.
  • You can create and customize your own password rotation policies, setting the passwords to expire every 90 days and also the complexity of the passwords.

CloudTrail
This can be configured along side IAM to log information about who made requests to access specific resources in your AWS account.

Free Service
Unlike some of the other Services provided by AWS, IAM is free to use and can be integrated with other services.

Accessibility
IAM can be accessed through different methods such as the Web Console, Command Line tools, AWS SDKs and IAM HTTPS API.

AWS

AWS Services Overview

AWS_Services.gif?fit=682%2C403

List of Aws Services

A quick overview of some of the AWS Services and what they do, found this very useful when studying for the AWS certifications.

I will be covering a lot more on AWS as i delve deeper into the course and start looking at other courses as well.

Name of ServiceEasy naming conventionUse This to?
EC2Amazon Virtual MachinesHosting your virtual machines
IAMUsers, Keys and Certs managerSimilar to Active Directory, it's used to manage users, policies and keys
S3Amazon Unlimited FTP ServerHosts files such as, Images, assets for websites, backups and can share these files between services.
VPCA Virtual Private NetworkCreate and configure your own network
LambdaAWS App ScriptsRun snippets of code such as JD, Java or Python.
API GatewayAPI ProxyAllows you to monitor and block specific types of traffic that is targeting your apps
RDSAmazon SQLThis will be where you host your databases. MySQL, PostgreSQL and Oracle are supported
Route53Amazon DNS / DomainsBuy new domain names and configure the DNS records for it
SESAmazon Transactional EmailAllows you to send one-off emails such as password resets and notifications
CloudFrontAmazon CDNAllows a website to load faster by distributing content to a server local to the user
CloudSearchAmazon Full Text SearchPulls in data from other services and allows you to search for something across every instance
DynamoDBAmazon NoSQLautomatically scale-able database
ElastiCacheAmazon MemcachedCaches specific data so that it can be called for more quickly
Elastic TranscoderAmazon Cut ProAllows you to transcode Audio and Video
SQSAmazon QueueStore data that can be processed in the future. Allows data to be called upon more quickly
WAFAWS FirewallBlocks bad requests to CloudFront protected sites.
CognitoAmazon Oauth as a serviceAllows users to login with Social media accounts, i.e google, facebook
Device FarmAWS AndroidAllows you to test your apps against various smart phone Operating Systems
Mobile AnalyticsMobile Analytics.. One that makes sense!Track what users are doing within your app
SNSAmazon MessengerSend mobile notifications, E-mails and/ or SMS Messages
CodeCommitAmazon GitHubVersion control for your code
CodeDeploySend code from CodeCommit to your EC2 Instances
CodePipelineAmazon Continuous IntegrationRun automated tests with your code and make amendments if it passes your tests
EC2 Container ServiceAmazon Docker as a ServicePut a Docker file into an EC2 instance so you can run a webiste
Elastic BeanStalkAmazon Platform as a ServiceMove your app from 3rd party services to Amazon when it gets too expensive
AppStreamAmazon CitrixPuts a copy of a Windows application on a Windows Machine and allows people to connect to that machine
Direct ConnectAmazon Direct ConnectPay an ISP and AWS to get directly connected to the cloud.. Faster Solution
Directory ServiceAmazon Directory ServiceLink applications to Microsoft Active Directory
WorkDocsAmazon File ShareShare Word Documents with colleagues
WorkMailAmazon EmailEmail solution for your business
WorkSpacesAmazon Remote ComputerProvides a Windows box that you can remotely connect too
Service CatalogAmazon Setup AlreadyGive users access to apps that you have already configured
Storage GatewayCloud DriveFor external storage without paying for excess hardware
Data PipelineAmazon ETLManage data from other locations in AWS. Can be scheduled and you can setup alerts for when it fails
Elastic Map ReduceAmazon HadooperAnalyse massive files of raw data that is being kept in S3
GlacierReally slow S3Used for archiving old data - to be used for long term archiving.
You will not be able to get data back quickly unless you pay a fee
KinesisAmazon High ThroughputIngests a lot of data very quickly so it can be referred back to later
RedShiftAmazon Data WarehouseStore analytic data, process it and dump it back out
Machine LearningSkyNet..Predict future behavior from existing data for problems like fraud detection or market research
SWFAmazon EC2 QueueA web service that keeps that current state of your workflow
SnowballAWS NAS DriveAn Amazon Harddrive that you would connect to your network and transfer data between your network and AWS
Cloud FormationAmazon Services SetupConfigure multiple AWS services at once
CloudTrailAmazon LoggingLog who is doing what in your AWS Environment
CloudWatchAmazon Status PagerGet alerts about AWS services failing or disconnecting
ConfigAWS Configuration ManagementTrack AWS changes
OpsWorksAmazon ChefHandle running your application with things like auto-scaling
Trusted AdvisorAmazon PennypincherFind out where all your money is going in AWS
InspectorAWS AuditingScans your AWS setup to see if it is secure