Tools‎ > ‎

Amazon EC2

The gadget spec URL could not be found
The gadget spec URL could not be found
Amazon EC2 is an enterprise-class server farm that charges by the hour with no setup fees and no contracts.

See
http://aws.amazon.com/ec2/

Pricing

Instance types table

Instance types storage

Developers

To enable Windows servers, you must add port 80 to the security group and open port 80 on the Windows Firewall

API Tools

Download

Setup steps

Windows

Note: "setx" sets global environment variables ("set" sets only in the current command prompt)

setx EC2_HOME C:\repository\bin\ec2

setx PATH %PATH%;%EC2_HOME%\bin
(does not work - need to set it through control panel | system | environment variables and add to PATH "C:\repository\bin\ec2\bin")

setx EC2_PRIVATE_KEY c:\repository\bin\ec2\pk-H7FYZR3ULGM2ZUXJITKG6BUOGMOGAISG.pem
setx EC2_CERT c:\repository\bin\ec2\cert-H7FYZR3ULGM2ZUXJITKG6BUOGMOGAISG.pem

To generate these ".pem" files, click "Security Creditials" in

X.509 Certifications

Install Java 1.6 if you don't already have it

setx JAVA_HOME "C:\Program Files (x86)\Java\jre6"

Linux

EC2 API tools setup Linux

SSH

To administer your Linux instances, you need SSH
ssh -i your.pem [email protected]

Download PuTTY and Pageant

See

EBS Storage

Adding ephemeral storage

For m1.small instances
> ec2-run-instances ami-84db39ed -b "/dev/sdf=ephemeral0" -k war-2 -t m1.small

> ec2-run-instances ami-84db39ed -b "xvdb=ephemeral0" -k war-2 -t m1.small
(2010-05-12 does not work, creates a "status:terminated" instance)

Mount the drive in Linux

> mkdir /data
> mount -a /dev/sdf /data
> mkdir /data2
> mount -a /dev/sfg /data2

For m1.large instances
> ec2-run-instances ami-86db39ef -b "/dev/sdf=ephemeral0" -b "/dev/sdg=ephemeral1" -k war-2 -t m1.large
> ec2-run-instances ami-86db39ef -b "/dev/sdf=ephemeral0" -b "/dev/sdg=ephemeral1" -k war-2 -t m2.xlarge

Mount the drive in Linux

> mkdir /data
> mount -a /dev/sdf /data
> mkdir /data2
> mount -a /dev/sfg /data2

Setup included ephemeral local instance storage

Can create EBS volumes in Volumes page

Links

Format drives

Step-by-step Guide
http://howto.opml.org/dave/ec2/

Ubuntu
http://www.ubuntu.com/ec2

RightScale
http://support.rightscale.com/03-Tutorials/02-AWS/01-Beginner_Examples/3._Basic_Example

Straight from Amazon
http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=100&externalID=1345 

How much money is Amazon making?
http://cloudscaling.com/blog/cloud-computing/amazons-ec2-generating-220m-annually

Comments