Ec2 for Startups - Ian Eure

Preview:

DESCRIPTION

 

Citation preview

EC2 & AWSFOR STARTUPS

Ian Eure

@ieure

http://simplegeo.com

http://atomized.org

THE LAST GENERATION

THE LAST GENERATION

•Lots of components to manage

•Staffing

•Vendor relationships

•Slow!

THE LAST GENERATION

THE LAST GENERATION

TODAY

TODAY

TODAY

TODAY

•Computation (EC2)

•AMI Marketplace

•Storage (EBS)

•MySQL (RDS)

•Load balancing (ELB)

•Addresses (EIP)

TODAY

•Storage (S3)

•Monitoring (CloudWatch)

•Queues (SQS)

•Content Distribution (CloudFront)

•Elastic MapReduce

BENEFITS

•Immediate capacity

•Snapshots

•Multiple regions

•Management console

•API

•Low risk

INFRASTRUCTURE AS CODE

>>> import boto

>>> ec2_conn = boto.connect_ec2(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)

>>> images = ec2_conn.get_all_images(image_ids=['ami-b111f4d8'])

>>> images[0]

Image:ami-b111f4d8

>>> reservation = images[0].run(1,1, 'yourKeyPair')

>>> reservationReservation:r-c2dc2fab

INFRASTRUCTURE AS CODE

•Automation

•It’s all development now

•Cross-pollination of dev & ops

INFRASTRUCTURE AS CODE

•Automate

•Acquisition

•Installation

•Configuration

•Upgrades

INFRASTRUCTURE AS CODE

•Develop

•Source control

•Strong build system

•Automated testing

•Strong release cycle

INFRASTRUCTURE AS CODE

•Operate

•Packaging & deployment

•Architecture

•Metrics

•Monitoring & alerts

GOTCHAS

•Cost

•Regions are silos

•Reliability

GOTCHAS

•Cost

•Regions are silos

•Reliability…?

DEMO

Ian Eure

@ieure

http://simplegeo.com

http://atomized.org

Recommended