Amazon Web Services


Timothy Lim
@thewheat / +TimothyLimSH

Brunei Geek Meet
6th December 2013

Lightning Talk

What is AWS?

Amazon Web Services / AWS

Cloud computing platform 
with many different products

Build scalable architectures 

Great time saving features

'Cheap'


REFERENCE ARCHITECTURES

Web Application Hosting (source)

VPC - Virtual Private Cloud

Isolated segments of AWS services
Webservers:  public subnet with Internet access
Databases: private subnet with no Internet access

VPC - SUBNETS


EC2 - Elastic Compute Cloud

Your (virtual) machine in the cloud
Do/Install what you want
Spin up or spin down EC2 instance based on load 

EC2 - Launching an INSTANCE

AMI - image of drive with OS & a root volume
AWS Market has free and paid AMIs for turn key solutions

EC2 - Instance Types

Not all types available in all regions 
(contact Amazon to possibly get other types)

EC2 - Storage


BEWARE: Root volume are  ephemeral (gone when instance shuts down/reboots) if not EBS based

EC2 - SecurITY GRoup


EC2

Different IPs on restart unless you use an  Elastic IP

No internet?  
/etc/init.d/networking restart
(or restart instance. not too sure why)


EBS - Elastic Block STORE


Basically a hard disk

You will need to format it
C:
/dev/disk0s0 
/dev/sda1

Filesystem access

Snapshots

EBS

Mountable on instances in the same availability zone

Create new volume (in new AZ) from snapshot then mount

 Amazon S3 

Storing data a ccessible by multiple instances

Objects stored in buckets with  99.999999999% durability

REST/SOAP interface  
(no direct filesystem access without 3rd party tools)

File Versioning 

File Encryption

S3 - Bucket Configurations


S3 - Permissions & Versioning



S3 - File Encryption

Folder setting not bucket setting

RDS - Relational DB SErvice

A managed service - auto updated with security patches
MySQL / PostgreSQL / Oracle / MS SQL

RDS - Backup & Restore


Point in Time Restores!

SES - Simple Email Service


Amazon SES helps give emails a lower spam rating

Statistics of : (1) Successful delivery attempts  
(2) Rejected messages  ( 3) Bounces  ( 4) Complaints 

Initial 10,000 daily quota limit (rolling quota)
Limited maximum sending rate per second
(ask Amazon for more quota)

CLOUDWATCH

Monitoring -  used for alerting / auto scaling

OTHER CONSIDERATIONS

Regions &  Availability Zones

SDK can help automate things 

Practically every little thing is chargeable
AWS Calculator

AWS Free Tier Usage for 1 year on signing up

AWSome day




THANKS and ENJOY 

THE REST OF THE NIGHT!