Introduction to Amazon Web Services (EC2)

7,918 views

Published on

CPLUG, May 13, 2008

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
7,918
On SlideShare
0
From Embeds
0
Number of Embeds
70
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Introduction to Amazon Web Services (EC2)

  1. 1. Introduction to Amazon Web Services EC2 In Particular Nathan Powell, Consultant Tangeis, LLC http://tangeis.com (but we are changing our name soon)
  2. 2. What are AWS? <ul><li>Various web application components </li></ul><ul><ul><li>Simple DB </li></ul></ul><ul><ul><li>S3 </li></ul></ul><ul><ul><li>Simple Queue Service </li></ul></ul><ul><ul><li>EC2 </li></ul></ul><ul><ul><li>All accessible via APIs </li></ul></ul>
  3. 3. Explain EC2. <ul><li>EC2 is the Elastic Compute Cloud </li></ul><ul><ul><li>It is physical hardware </li></ul></ul><ul><ul><li>Pwnd and operated by Amazon </li></ul></ul><ul><ul><li>Virtual servers </li></ul></ul><ul><ul><li>Self aware API </li></ul></ul><ul><ul><li>Grow and Shrink </li></ul></ul>
  4. 4. Uh huh, how's that work? <ul><li>Xen Images/AMI's </li></ul><ul><ul><li>Disk images of functional servers </li></ul></ul><ul><ul><li>Create your own, or customize public images </li></ul></ul><ul><ul><li>Save off/Upload image (to S3) </li></ul></ul><ul><ul><li>Spin up/down instances to handle needs </li></ul></ul>
  5. 5. Interesting. What are some uses? <ul><li>Spin up a large number of instances churn a ton of data spin back down </li></ul><ul><ul><li>No need to build/buy </li></ul></ul><ul><ul><li>No need to wait </li></ul></ul><ul><li>Create self scaling web apps </li></ul><ul><ul><li>Few applications are always busy </li></ul></ul><ul><ul><li>Cost prohibitive to be prepared for anything </li></ul></ul><ul><li>Testing </li></ul><ul><ul><li>R&D is now much much cheaper </li></ul></ul>
  6. 6. Ok, cool...tell me more <ul><li>Root access to all instances </li></ul><ul><li>Multiple Locations </li></ul><ul><ul><li>Reduce Geo-Failover costs </li></ul></ul><ul><ul><li>Content Delivery Network </li></ul></ul><ul><li>Web service interface to firewall in the cloud </li></ul><ul><li>Eliminates Wasted Resources </li></ul>
  7. 7. Drawbacks? <ul><li>Instance storage not persistent </li></ul><ul><ul><li>That is changing very soon </li></ul></ul><ul><ul><li>In beta now </li></ul></ul><ul><li>Dynamic IP </li></ul><ul><ul><li>This just ended </li></ul></ul><ul><ul><li>Now the IP is associated with account, not instance </li></ul></ul><ul><ul><li>Can programatically map IP to any instance </li></ul></ul><ul><ul><ul><li>Good use for LB/VRRP? [citation needed] </li></ul></ul></ul>
  8. 8. Anything else? <ul><li>It's important to note that it introduces changes in how we build and deploy and think about applications and infrustructure. </li></ul>
  9. 9. AWS goes together <ul><li>S3 (Simple Storage Service) </li></ul><ul><li>Simple DB </li></ul><ul><li>SQS (Simple Queue Service) </li></ul><ul><li>Dev Pay </li></ul><ul><li>Mechanical Turk </li></ul>
  10. 10. There is no free lunch <ul><li>$0.10 - Small Instance (Default) </li></ul><ul><ul><li>1.7 GB of memory, 1 virtual core, 160 GB of instance storage, 32-bit platform </li></ul></ul><ul><li>$0.40 - Large Instance </li></ul><ul><ul><li>7.5 GB of memory, 2 virtual cores, 850 GB of instance storage, 64-bit platform </li></ul></ul><ul><li>$0.80 - Extra Large Instance </li></ul><ul><ul><li>15 GB of memory, 4 virtual cores, 1690 GB of instance storage, 64-bit platform </li></ul></ul>
  11. 11. And there's more! <ul><li>$0.100 per GB - all data transfer in </li></ul><ul><li>$0.170 per GB - first 10 TB / month data transfer out </li></ul><ul><li>$0.130 per GB - next 40 TB / month data transfer out </li></ul><ul><li>$0.110 per GB - next 100 TB / month data transfer out </li></ul><ul><li>$0.100 per GB - data transfer out / month over 150 TB </li></ul>
  12. 12. Ok, this is starting to suck, show us something...anything?!? <ul><li>Psst, stop showing slides and move over to the demo side...that is where this stuff really starts to rock. (Make sure you take this out before the presentation and put a picture of a pony here a really pretty one...maybe on a beach or something. Ooo! I know show some girls, these nerds have probably never seen girls close up, they will really really like that!) </li></ul>
  13. 13. In the terminal > java -version (should be 1.5 or Java 5) > Sign up for a AWS Account > Set up tools > Download the zip file of Java tools, and put them somwhere > export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/ > export EC2_HOME=/path/to/tools > export PATH=$PATH:$EC2_HOME/bin > export EC2_PRIVATE_KEY=~/.ec2/pk-OBxxxxxxPMAMK4RLMELxxxx2QI4L5WY.pem > export EC2_CERT=~/.ec2/cert-OB4CAAKxxxxMK4RxxxxxxxIZ2QI4L5WY.pem > Use tools/service > ec2-describe-images -o self -o amazon > ec2-add-keypair cplug > ec2-run-instances ami-f51aff9c -k cplug > ec2-describe-instances i-e9bb7480 > ssh -i id_dsa-cplug root@ec2-67-202-45-174.compute-1.amazonaws.com > ec2-terminate-instances i-e9bb7480
  14. 14. Linky Loos <ul><li>http://aws.amazon.com - Main Page </li></ul><ul><li>http://aws.amazon.com/ec2 - EC2 </li></ul><ul><li>http://aws.amazon.com/s3 - S3 </li></ul><ul><li>http://aws.typepad.com/aws/ - AWS Blog </li></ul><ul><li>http://en.wikipedia.org/wiki/Xen - Xen </li></ul><ul><li>http://www.virtualization.info/ - General Virtualization Blog </li></ul>

×