2011年3月2日 星期三

Use ssh to login your server

ssh ec2-50-16-140-25.compute-1.amazonaws.com

Let's ROck with Cassandra on AWS EC2

1. Get your free account on AWS.
2. Start your EC2 service with a phone callback verification.
3. Start some other services, such as EBS service.
4. Start an EC2 instance with a selected Community EBS image. (select t1.micro for free).

1. Download AWS API Tools from http://aws.amazon.com/developertools/AWS-Identity-and-Access-Management/4143

2. export AWS_IAM_HOME=/home/ming/aws/ec2-api-tools-1.3-62308
3. edit your account-key with

AWSAccessKeyId=AKIAJF2FTOVIKxxx
AWSSecretKey=RcxCU6j9frycCK7uXFIneWZ/z5y+Tgxxxxxxxx


4. check you Instance site on https://console.aws.amazon.com/ec2/home?region=us-east-1


5. to create a user namded ming.

ming@ming-desktop:~/aws$ ls
account-key ec2-api-tools-1.3-62308/ IAMCli-1.2.0/
ming@ming-desktop:~/aws$ vi myconfig.txt
ming@ming-desktop:~/aws$ iam-groupcreate -g Admins
ming@ming-desktop:~/aws$ iam-grouplistbypath
arn:aws:iam::396767937xxx:group/Admins
ming@ming-desktop:~/aws$ vi MyPolicy.txt
ming@ming-desktop:~/aws$ iam-groupuploadpolicy -g Admins -p AdminsGroupPolicy -f MyPolicy.txt
ming@ming-desktop:~/aws$ iam-grouplistpolicies -g Admins
AdminsGroupPolicy
ming@ming-desktop:~/aws$ iam-usercreate -u ming -g Admins -k -v
AKIAIKFT5QD7IVQY6xxx
As2ECyKAKddPEpaZwyHrr42F9qyXITcSiPBF3xxx
arn:aws:iam::396767937xxx:user/ming
AIDAJOPZGYSBZ2DYGGxxx
ming@ming-desktop:~/aws$ iam-grouplistusers -g Admins
arn:aws:iam::396767937xxx:user/ming
ming@ming-desktop:~/aws$ vi ming_cred.txt
ming@ming-desktop:~/aws$ pwd
/home/ming/aws
ming@ming-desktop:~/aws$ export AWS_CREDENTIAL_FILE=/home/ming/aws/ming-cred.txt
ming@ming-desktop:~/aws$ !v
vi ming_cred.txt
ming@ming-desktop:~/aws$ !v
vi ming_cred.txt
ming@ming-desktop:~/aws$ iam-userlistkeys -u ming
Could not load AWS Credential file. Make sure that the environment variable AWS_CREDENTIAL_FILE or command line argument --aws-credential-file is set to a file containing AWS Credentials in the following format. Enter the AWS keys without the < or >
AWSAccessKeyId=
AWSSecretKey=
ming@ming-desktop:~/aws$ !v
vi ming_cred.txt
ming@ming-desktop:~/aws$ export AWS_CREDENTIAL_FILE=/home/ming/aws/ming_cred.txt
ming@ming-desktop:~/aws$ iam-userlistkeys -u ming
AKIAIKFT5QD7IVQY6G4A
Active

2009年3月24日 星期二

The First Coulds oriented Studio (SDK).

Aptana Studio. http://www.aptana.com/

Easy to deploy your applications, but only 7 days for free. I move to Google App Engine after that.
Eclipse also provide deployment tools for Google App Engine.
http://code.google.com/intl/zh-TW/appengine/articles/eclipse.html


Happy Googling.

The First Compute Cloud I found...

Amason EC2, http://aws.amazon.com/ec2/ should be the one, but
Of course, Google should be the number one provider in free. I'm using their App Engine to make one.
But what kinds of applications are suitable for compute clouds?

Name one if you can leave a comment. Thanks