Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Chugalug AWS Presentation

Chugalug AWS Presentation

Check out the original recorded presentation here: http://www.ustream.tv/recorded/18582557

D3630c5a12aa3e85748670729444d5a9?s=128

Jonathan Wallace

November 18, 2011
Tweet

Transcript

  1. AWS and Nephophobia*: never again! * fear of clouds Friday,

    November 18, 11 adfas
  2. Get to know me! • software developer (C, Ruby, Rails,

    etc) • http://highgroove.com • jonathan.wallace@gmail.com • @jonathanwallace • http://blog.jonathanrwallace.com Friday, November 18, 11 background, schooling, etc
  3. 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
  4. • 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
  5. • “...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
  6. Friday, November 18, 11 You only pay while the servers

    are running.
  7. 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)
  8. 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.'
  9. Instance Pricing • On Demand • Reserve • Spot Friday,

    November 18, 11 spot (based on supply and demand)
  10. 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?
  11. 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.
  12. 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.
  13. Not always perfect Friday, November 18, 11

  14. Where do those AMIs live? • First, let’s talk about...

    Friday, November 18, 11
  15. S3 • Simple Storage Service • HTTP, SOAP and REST

    interfaces • Many ftp clients have support Friday, November 18, 11
  16. 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
  17. Data & Metadata Friday, November 18, 11

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

    AMI
  19. A couple of more storage options • Ephemeral storage •

    EBS Friday, November 18, 11
  20. 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
  21. EC2 command line tools • Prerequisites • Setting up the

    tools Friday, November 18, 11
  22. Prereqs • ensure java is set up on your machine

    • ssh client • setting up credentials Friday, November 18, 11
  23. EC2 credentials Friday, November 18, 11 i like to store

    them in a ~/.ec2 directory
  24. Environment variables Friday, November 18, 11

  25. And a little something for your .bash_profile • # ec2

    • source ~/.ec2_rc Friday, November 18, 11
  26. Adventure time! Friday, November 18, 11

  27. Setting up the tools • Download: http://aws.amazon.com/ developertools/351 • Unzip

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

    18, 11
  29. THANKS Friday, November 18, 11