Slide 1

Slide 1 text

AWS and Nephophobia*: never again! * fear of clouds Friday, November 18, 11 adfas

Slide 2

Slide 2 text

Get to know me! • software developer (C, Ruby, Rails, etc) • http://highgroove.com • [email protected] • @jonathanwallace • http://blog.jonathanrwallace.com Friday, November 18, 11 background, schooling, etc

Slide 3

Slide 3 text

OVER view • AWS • EC2 • S3 • EBS • Getting set up with the command line tools Friday, November 18, 11 way back a long long time ago launched in 2006 with SQS

Slide 4

Slide 4 text

• EC2, Route 53 (scalable DNS), VPC (virtual private cloud), CloudFront, • SimpleDB, RDS (relational database service), FPS (flexible payment systems), S3, • EBS, FWS (Fulfillment Web Service), SQS, SNS, SES • and more!!!!! (see http://aws.amazon.com/ AWS Services Friday, November 18, 11 way back a long long time ago launched in 2006 with SQS

Slide 5

Slide 5 text

• “...web service providing resizeable computing capacity.” • You can add resources (CPUs) as you need them. EC2 Friday, November 18, 11 new renting economy, zip car, living social, Steve Case, America Online

Slide 6

Slide 6 text

Friday, November 18, 11 You only pay while the servers are running.

Slide 7

Slide 7 text

Pricing Tiers • $0.02/hr (micro) up to $2.97/hr (Cluster Compute Eight Extra Large) • Some focused on memory, some on CPU Friday, November 18, 11 windows is 25% to 33% more expensive reserved instances (pay it up front for discounted hourly rate)

Slide 8

Slide 8 text

Small Instance Example (Reserved vs. On Demand) • $490.30 = $262.80 (up front) + 227.50 (full time run for the year) • $744.60 Friday, November 18, 11 it pays to know what you want. So, what are you paying for? You're paying for a power and access to shared hardware running in a virtual machine. Amazon calls this an 'instance.'

Slide 9

Slide 9 text

Instance Pricing • On Demand • Reserve • Spot Friday, November 18, 11 spot (based on supply and demand)

Slide 10

Slide 10 text

What is an “instance?” Friday, November 18, 11 Anyone built or builds there own desktop machines? What are your steps? ask for software installation steps. 1st thing? what next?

Slide 11

Slide 11 text

AMI? • A template for a running computer • What should be on it? Software? Data? A kitchen sink? Friday, November 18, 11 Imagine if you could record the state of your machine at that moment in time. Now, imagine if you needed to set up a new machine in the exact same manner. That's what an AMI is. Its a template of the OS and software at a given time that can be used to start a new running instance. Remember, you're only charged while the instance is running. Make an image. Use it when you need it. There're good opinions on how configured your desktop should be. Should it have your mail client configured? Should it have all your photos and precious documents? From an enterprise stand point, should the image be setup with the application software set to a specific version? This is a good question that we'll revisit a little later in the talk.

Slide 12

Slide 12 text

Regions and Zones Friday, November 18, 11 Amazon has different regions, us-east-1, us-west 1 and different availability zones within those regions. Regions are for close to your customer. Zones are independent of one another.

Slide 13

Slide 13 text

Not always perfect Friday, November 18, 11

Slide 14

Slide 14 text

Where do those AMIs live? • First, let’s talk about... Friday, November 18, 11

Slide 15

Slide 15 text

S3 • Simple Storage Service • HTTP, SOAP and REST interfaces • Many ftp clients have support Friday, November 18, 11

Slide 16

Slide 16 text

S3 • You store objects which consist of data and metadata. • Metadata concerns access permissions, file type, etc. • Data is the actual file. Friday, November 18, 11

Slide 17

Slide 17 text

Data & Metadata Friday, November 18, 11

Slide 18

Slide 18 text

Buckets and Keys Friday, November 18, 11 instance store to AMI

Slide 19

Slide 19 text

A couple of more storage options • Ephemeral storage • EBS Friday, November 18, 11

Slide 20

Slide 20 text

EBS Volumes • Attach to any running instances • Create snapshots on the fly • Replicated within the availability zone Friday, November 18, 11 snapshot problems, only attached to one instance

Slide 21

Slide 21 text

EC2 command line tools • Prerequisites • Setting up the tools Friday, November 18, 11

Slide 22

Slide 22 text

Prereqs • ensure java is set up on your machine • ssh client • setting up credentials Friday, November 18, 11

Slide 23

Slide 23 text

EC2 credentials Friday, November 18, 11 i like to store them in a ~/.ec2 directory

Slide 24

Slide 24 text

Environment variables Friday, November 18, 11

Slide 25

Slide 25 text

And a little something for your .bash_profile • # ec2 • source ~/.ec2_rc Friday, November 18, 11

Slide 26

Slide 26 text

Adventure time! Friday, November 18, 11

Slide 27

Slide 27 text

Setting up the tools • Download: http://aws.amazon.com/ developertools/351 • Unzip ‘em! Friday, November 18, 11

Slide 28

Slide 28 text

Use the source http:// docs.amazonwebservices.com/ AWSEC2/latest/UserGuide/ index.html? SettingUp_CommandLine.html Friday, November 18, 11

Slide 29

Slide 29 text

THANKS Friday, November 18, 11