Amazon Web Services (slides) - Scott...

102
© 2010 R. Scott Granneman Last updated 20101013 You are free to use this work, with certain restrictions. For full licensing information, please see the last slide/page. SLUUG R. Scott Granneman [email protected] www.granneman.com Jans Carton [email protected] A Short Guide Amazon Web Services 1 Thursday, October 14, 2010

Transcript of Amazon Web Services (slides) - Scott...

Page 1: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

© 2010 R. Scott GrannemanLast updated 20101013

You are free to use this work, with certain restrictions.For full licensing information, please see the last slide/page.

SLUUGR. Scott Granneman

[email protected]

Jans [email protected]

A Short GuideAmazon Web Services

1Thursday, October 14, 2010

Page 2: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

2Thursday, October 14, 2010

Page 3: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

History

3Thursday, October 14, 2010

Page 4: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Launched July 2002Why?

Take advantage of underutilizedinfrastructure,technologies,& operations

that power Amazon’s$10 billion online store

4Thursday, October 14, 2010

Page 5: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

60,000 systems320,000 CPUs

400 Gbps of bandwidth

5Thursday, October 14, 2010

Page 6: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

June 2007330,000 developers using AWS

March 2010102,000,000,000 objects in S3

6Thursday, October 14, 2010

Page 7: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Common AWS characteristicsAimed at developers,

not end usersBilled on usage;

no contracts & no minimums99.95% reliability

(some o!er 99.999999999%!)

7Thursday, October 14, 2010

Page 8: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Current Services

8Thursday, October 14, 2010

Page 9: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

ComputeContent Delivery

DatabaseE-CommerceMessagingMonitoringNetworking

Payments& BillingStorageSupport

Web Tra"cWorkforce

AWS Current Serviceshttp://aws.amazon.com/products/

9Thursday, October 14, 2010

Page 10: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

ComputeElastic Compute Cloud (EC2)

“scalable, pay-as-you-gocompute capacity in the cloud”

Elastic MapReduce“easily & cost-e!ectively process

vast amounts of data”Auto Scaling

“automatically scale … EC2 capacityup or down

according to conditions you define”10Thursday, October 14, 2010

Page 11: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Content DeliveryCloudFront

“distribute contentwith low latency

via a global networkof edge locations”

11Thursday, October 14, 2010

Page 12: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

DatabaseSimpleDB

“run queries on structured datain real time …

in conjunction with S3 and EC2”Relational Database Service (RDS)

“set up, operate, and scalea relational database in the cloud”

12Thursday, October 14, 2010

Page 13: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

E-CommerceFulfillment Web Service (FWS)

“allows merchantsto deliver products

using Amazon.com’sworldwide fulfillment capabilities”

13Thursday, October 14, 2010

Page 14: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

MessagingSimple Queue Service (SQS)

“hosted queue for storing messagesas they travel between computers,

making it easy to buildautomated workflow

between Web services”Simple Notification Service (SNS)

“set up, operate, and sendnotifications from the cloud”

14Thursday, October 14, 2010

Page 15: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

MonitoringCloudWatch“monitoring

for AWS cloud resources,starting with Amazon EC2”

15Thursday, October 14, 2010

Page 16: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

NetworkingVirtual Private Cloud (VPC)

“connectexisting enterprise infrastructure

to isolated AWS compute resourcesvia a VPN”

Elastic Load Balancing“automatically distributes

incoming application tra"cacross multiple EC2 instances”

16Thursday, October 14, 2010

Page 17: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Payments & BillingFlexible Payments Service (FPS)

“facilitates digital transfer of moneybetween any two entities,

humans or computers”DevPay

“billing & account management servicewhich enables developers

to collect paymentfor their AWS applications”

17Thursday, October 14, 2010

Page 18: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

StorageSimple Storage Service (S3)

“fully redundantdata storage infrastructure”Elastic Block Storage (EBS)“block level storage volumes

for use with Amazon EC2 instances”AWS Import/Export“accelerates moving

large amounts of datainto and out of AWS”

18Thursday, October 14, 2010

Page 19: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

SupportAWS Premium Support

“one-on-one, fast-responsesupport channel”

19Thursday, October 14, 2010

Page 20: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Web Tra"cAlexa Web Information Service

“huge repository of dataabout structure & tra"c patterns

on the Webavailable to developers”

Alexa Top Sites“exposes global website tra"c data

as it iscontinuously collected & updated”

20Thursday, October 14, 2010

Page 21: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

WorkforceAmazon Mechanical Turk

“access thousands of global workerson demand

& programmatically integratetheir work

into various business processes”

21Thursday, October 14, 2010

Page 22: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3

22Thursday, October 14, 2010

Page 23: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

0

22,000,000,000

44,000,000,000

66,000,000,000

88,000,000,000

110,000,000,000

Oct. 2007 Jan. 2008 Oct. 2008 Mar. 2009 Mar. 2010

Number of Objects Stored at S3

23Thursday, October 14, 2010

Page 24: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Who uses S3?SmugMugDropbox

Ubuntu OneSlideshare

TwitterWoot

24Thursday, October 14, 2010

Page 25: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3: Simple Storage ServiceWrite, read, & delete files

Each file can be 1 byte to 5 GBUnlimited number of files

Files can be public or privateor require authentication

Automatic torrents:append ?torrent to file’s URL

Versioning25Thursday, October 14, 2010

Page 26: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Objects are stored in bucketsLike folders, but not really

Bucket names must be uniqueacross all of S3,

not just your account

26Thursday, October 14, 2010

Page 27: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Domain mappingName a bucket test.foo.com

In DNS,create a CNAME recordpointing test.foo.com

totest.foo.com.s3.amazonaws.com.Note: no https access to that bucket

without a security alert

27Thursday, October 14, 2010

Page 28: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Pricing

28Thursday, October 14, 2010

Page 29: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3 pricing1st 50 TB/month

Storage $0.15/GB

Data Transfer In Free ‘til 11/1/10Data Transfer In $0.10/GB

Data Transfer Out $0 for 1st GBData Transfer Out $0.11–0.15/GBPUT, COPY, POST, or LIST requests $0.01/1000 requests

GET & all other requests

$0.01/10,000 requests

29Thursday, October 14, 2010

Page 30: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Full pricing list ataws.amazon.com/s3/#pricing

30Thursday, October 14, 2010

Page 31: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon Web ServicesSimple Monthly Calculator

calculator.s3.amazonaws.com/calc5.html

31Thursday, October 14, 2010

Page 32: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

32Thursday, October 14, 2010

Page 33: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Using S3

33Thursday, October 14, 2010

Page 34: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon provides a service,not software

34Thursday, October 14, 2010

Page 35: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Many of Amazon’s other servicesuse S3

35Thursday, October 14, 2010

Page 36: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

GUI tools

36Thursday, October 14, 2010

Page 37: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon Management Consoleconsole.aws.amazon.com/s3/home

Web-basedFree

37Thursday, October 14, 2010

Page 38: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

38Thursday, October 14, 2010

Page 39: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3Foxwww.s3fox.net

Firefox extension

39Thursday, October 14, 2010

Page 40: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

DragonDiskwww.dragondisk.com

FreeWindows & Linux

40Thursday, October 14, 2010

Page 41: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

41Thursday, October 14, 2010

Page 42: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Déjà Duplive.gnome.org/DejaDup/

FreeGNOME

42Thursday, October 14, 2010

Page 43: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

s3fscode.google.com/p/s3fs/wiki/

FuseOverAmazonFUSEFree

43Thursday, October 14, 2010

Page 44: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Cyberduckcyberduck.ch

FreeMac OS X

44Thursday, October 14, 2010

Page 45: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Transmitwww.panic.com/transmit/

$35Mac OS X

45Thursday, October 14, 2010

Page 46: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3fmwww.s3fm.com

Web-basedFree or license for integration

46Thursday, October 14, 2010

Page 47: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

CLI tools

47Thursday, October 14, 2010

Page 48: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

awstimkay.com/aws/

PerlFree

48Thursday, October 14, 2010

Page 49: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

JetS3tjets3t.s3.amazonaws.com/index.html

JavaFree

49Thursday, October 14, 2010

Page 50: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

s3cmds3tools.org/s3cmd

PythonFree

Read “s3cmd sync HowTo”s3tools.org/s3cmd-sync

50Thursday, October 14, 2010

Page 51: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

S3syncwww.s3sync.net

RubyFree

51Thursday, October 14, 2010

Page 52: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Create~/.s3conf/s3config.yml

52Thursday, October 14, 2010

Page 53: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

# Your AWS Access Keyaws_access_key_id: 0G60EWS0AZ09JTFCB2P2# Your AWS Secret Keyaws_secret_access_key: b9w5ytreBH8jfGTyplZaa0X2lnZx/uOHWgrymU+# Path to Certificate Authority keysssl_cert_dir: /Users/[username]/bin/s3sync/s3certs# Number of HTTP errors before s3sync exitss3sync_retries: 5# Character sets3sync_native_charset: UTF-8

53Thursday, October 14, 2010

Page 54: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

$ ~/bin/s3sync/s3sync.rb--ssl

--delete--verbose--progress--recursive

/Users/rsgranne/Documents/Clientele/granneclientele:

Others:--dryrun--debug

54Thursday, October 14, 2010

Page 55: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EBS

55Thursday, October 14, 2010

Page 56: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EBS: Elastic Block StorageHard drive storage

mounted to EC2 instance1GB to 1TB

Snapshots saved to S3

56Thursday, October 14, 2010

Page 57: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EBS pricing$0.10/GB/month

$0.10/1 million IO requests

57Thursday, October 14, 2010

Page 58: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Public Data Sets on AWSaws.amazon.com/publicdatasets/

“repository of public data setsthat can be seamlessly integrated

into AWS cloud-based applications”

58Thursday, October 14, 2010

Page 59: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Sample Public Data SetsAnnotated Human Genome Data

Various US Census DatabasesUniGene

Freebase Data DumpSloan Digital Sky Survey

Wikipedia Extraction

59Thursday, October 14, 2010

Page 60: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Managing

60Thursday, October 14, 2010

Page 61: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon EC2 API Toolsdeveloper.amazonwebservices.com/connect/entry.jspa?externalID=351

CLI for managing EBSGet info, attach storage, & more

61Thursday, October 14, 2010

Page 62: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

62Thursday, October 14, 2010

Page 63: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2

63Thursday, October 14, 2010

Page 64: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2: Elastic Compute CloudServers on the fly,

running Linux or WindowsIncrease or decrease capacity

as needed, in minutesStatic IP addresses

associated with your account,not an instance

Elastic Load BalancingSnapshots saved to S3

64Thursday, October 14, 2010

Page 65: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Pricing

65Thursday, October 14, 2010

Page 66: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 operating systems

Red Hat EL Server 2003OpenSolaris Server 2008

FedoraSUSE

GentooAmazon Linux

UbuntuDebian

66Thursday, October 14, 2010

Page 67: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 instancesRAM CPU Storage Bits

Small 1.7 GB 1 160 GB 32

Large 7.5 GB 4 850 GB 64

Extra Large 15 GB 8 1690 GB 64

High-MemoryHigh-MemoryHigh-MemoryHigh-MemoryHigh-Memory

Quad Extra Large 68 GB 26 850 GB 64

High-CPUHigh-CPUHigh-CPUHigh-CPUHigh-CPU

Extra Large 7 GB 20 1690 GB 6467Thursday, October 14, 2010

Page 68: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 instancesRAM CPU Storage Bits

Micro 613 MB 2 EBS 32/64

68Thursday, October 14, 2010

Page 69: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 pricing

Small $0.085/hr $0.12/hr

Large $0.34/hr $0.48/hr

Extra Large $0.68/hr $0.96/hr

High-MemoryHigh-MemoryHigh-Memory

Quad Extra Large $2.00/hr $2.48/hr

High-CPUHigh-CPUHigh-CPU

Extra Large $0.68/hr $1.16/hr69Thursday, October 14, 2010

Page 70: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 pricing

Micro $0.02/hr $0.03/hr

70Thursday, October 14, 2010

Page 71: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 pricing

Data Transfer

InIn

1st 1 GB Out

Up to 10 TB Out

Next 40 TB Out

To & from S3

Free ‘til 11/1/10$0.10/GB

$0

$0.15/GB

$0.11/GB

$071Thursday, October 14, 2010

Page 72: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Small EC2 instance$0.085/hr

#24 hours

=$2.04/day

$14.28/week$63.24/month

72Thursday, October 14, 2010

Page 73: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Instances & AMIs

73Thursday, October 14, 2010

Page 74: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Uses Xen virtualizationA virtual machine is an instance

74Thursday, October 14, 2010

Page 75: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

You could bootstrap everythingMuch easier to start with an AMI

(Amazon Machine Image)An AMI instantiates an instance

75Thursday, October 14, 2010

Page 76: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon AMIsdeveloper.amazonwebservices.com/

connect/kbcategory.jspa?categoryID=171

76Thursday, October 14, 2010

Page 77: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

77Thursday, October 14, 2010

Page 78: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

SUSE Linux Enterprise Server 10Amazon Linux AMI (Cent OS)

Gentoo Linux 2010Ubuntu 10.04

78Thursday, October 14, 2010

Page 79: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

BitNami LAMPStackBitNami Joomla! Stack

BitNami WordPress StackBitNami Trac Stack

BitNami MediaWiki StackBitNami phpBB Stack

BitNami DokuWiki Stack

79Thursday, October 14, 2010

Page 80: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

IBM WebSphere Application ServerIBM Lotus Domino

IBM InfoSphereIBM Informix Dynamic Server

IBM DB2 Express

80Thursday, October 14, 2010

Page 81: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

O"cial Ubuntu support for EC2

81Thursday, October 14, 2010

Page 82: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

O"cial Ubuntu AMIsuec-images.ubuntu.com/releases/10.04/release/

82Thursday, October 14, 2010

Page 83: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Ubuntu Server on Cloud 10 ProgramAnyone can try out

Ubuntu 10.10 Server Editionon Amazon EC2

for free for one hour10.cloud.ubuntu.com

83Thursday, October 14, 2010

Page 84: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Alesticalestic.com

Ubuntu and Debian AMIsfor Amazon EC2

84Thursday, October 14, 2010

Page 85: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

85Thursday, October 14, 2010

Page 86: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

86Thursday, October 14, 2010

Page 87: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

EC2 has no persistent storageTemporary storagesurvives reboots

but not terminationOriginally relied on S3 for booting

Now you can instead useEBS-backed volumes for booting

87Thursday, October 14, 2010

Page 88: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

If you’re starting withan instance-store root device type

“Create EBS Boot AMI”www.capsunlock.net/

2009/12/create-ebs-boot-ami.html

88Thursday, October 14, 2010

Page 89: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

If you’re starting withan EBS-backed instance

“Using Amazon EBS-BackedAMIs and Instances”

docs.amazonwebservices.com/AWSEC2/latest/UserGuide/

index.html?Using_BootFromEBS.html

89Thursday, October 14, 2010

Page 90: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

The basic workflow is1. Create snapshots

of all volumesattached to currently running

EBS-backed instance2. Register an AMI

that references those snapshots

90Thursday, October 14, 2010

Page 91: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Full set of instructions atfiles.granneman.com/presentations/cloud/

HOWTO_Create_EBS-backed_AMI_for_AWS.txt

91Thursday, October 14, 2010

Page 92: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Managing

92Thursday, October 14, 2010

Page 93: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Amazon EC2 API Toolsdeveloper.amazonwebservices.com/connect/entry.jspa?externalID=351

CLI for managing EC2Get info, start, terminate,

attach storage, associate IP,& more

93Thursday, October 14, 2010

Page 94: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

94Thursday, October 14, 2010

Page 95: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

VPC

95Thursday, October 14, 2010

Page 96: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

VPC: Virtual Private CloudConnect corporate infrastructure

to isolated EC2 instancesvia VPN

96Thursday, October 14, 2010

Page 97: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

VPC pricing1st 10 TB/month

Connection $0.05/hour

Data Transfer In $0.10/GB

Data Transfer Out $0.15/GB

97Thursday, October 14, 2010

Page 98: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Reading

98Thursday, October 14, 2010

Page 99: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

“Je! Bezos’ Risky Bet”Business Week (13 November 2006)www.businessweek.com/magazine/

content/06_46/b4009001.htm

99Thursday, October 14, 2010

Page 100: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

AWS Documentationaws.amazon.com/documentation/

100Thursday, October 14, 2010

Page 101: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

Thank you!

Email: [email protected]: www.granneman.com

Publications: www.granneman.com/pubsBlog: blog.granneman.comTwitter: scottgranneman

101Thursday, October 14, 2010

Page 102: Amazon Web Services (slides) - Scott Grannemanfiles.granneman.com/.../AmazonWebServices_slides.pdf · Amazon Web Services Thursday, October 14, 2010 1. Thursday, October 14, 2010

© 2010 R. Scott GrannemanLast updated 20101013

You are free to use this work, with certain restrictions.For full licensing information, please see the last slide/page.

SLUUGR. Scott Granneman

[email protected]

Jans [email protected]

A Short GuideAmazon Web Services

102Thursday, October 14, 2010