Introduction to Amazon Web Services (EC2) - Presentation Transcript
Introduction to Amazon Web Services EC2 In Particular Nathan Powell, Consultant Tangeis, LLC http://tangeis.com (but we are changing our name soon)
What are AWS?
Various web application components
Simple DB
S3
Simple Queue Service
EC2
All accessible via APIs
Explain EC2.
EC2 is the Elastic Compute Cloud
It is physical hardware
Pwnd and operated by Amazon
Virtual servers
Self aware API
Grow and Shrink
Uh huh, how's that work?
Xen Images/AMI's
Disk images of functional servers
Create your own, or customize public images
Save off/Upload image (to S3)
Spin up/down instances to handle needs
Interesting. What are some uses?
Spin up a large number of instances churn a ton of data spin back down
No need to build/buy
No need to wait
Create self scaling web apps
Few applications are always busy
Cost prohibitive to be prepared for anything
Testing
R&D is now much much cheaper
Ok, cool...tell me more
Root access to all instances
Multiple Locations
Reduce Geo-Failover costs
Content Delivery Network
Web service interface to firewall in the cloud
Eliminates Wasted Resources
Drawbacks?
Instance storage not persistent
That is changing very soon
In beta now
Dynamic IP
This just ended
Now the IP is associated with account, not instance
Can programatically map IP to any instance
Good use for LB/VRRP? [citation needed]
Anything else?
It's important to note that it introduces changes in how we build and deploy and think about applications and infrustructure.
AWS goes together
S3 (Simple Storage Service)
Simple DB
SQS (Simple Queue Service)
Dev Pay
Mechanical Turk
There is no free lunch
$0.10 - Small Instance (Default)
1.7 GB of memory, 1 virtual core, 160 GB of instance storage, 32-bit platform
$0.40 - Large Instance
7.5 GB of memory, 2 virtual cores, 850 GB of instance storage, 64-bit platform
$0.80 - Extra Large Instance
15 GB of memory, 4 virtual cores, 1690 GB of instance storage, 64-bit platform
And there's more!
$0.100 per GB - all data transfer in
$0.170 per GB - first 10 TB / month data transfer out
$0.130 per GB - next 40 TB / month data transfer out
$0.110 per GB - next 100 TB / month data transfer out
$0.100 per GB - data transfer out / month over 150 TB
Ok, this is starting to suck, show us something...anything?!?
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!)
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
Linky Loos
http://aws.amazon.com - Main Page
http://aws.amazon.com/ec2 - EC2
http://aws.amazon.com/s3 - S3
http://aws.typepad.com/aws/ - AWS Blog
http://en.wikipedia.org/wiki/Xen - Xen
http://www.virtualization.info/ - General Virtualization Blog
0 comments
Post a comment