home ‣ Setting up EC2 login
Setting up EC2:
- create X.509 cert and dl private key and cert
- download ec2 java tools
- set JAVA_HOME to where java lives (c:\PROGRA~1\Java\jdk1.6.0_03 for me)
- set EC2_HOME to where unpacked tools are
- add EC2_HOME\bin to PATH
- set EC2_CERT to the location of ec2 certificate file
- set EC2_PRIVATE_KEY to the location of ec2 private key file
- run ec2ver to see if it works
- ec2-describe-images -a : get list of all images
- ec2-add-keypair gsg-keypair >id_rsa-gsg-keypair : creates a private key for logging in
- ami-03d6336a : ubuntu 7.10 base image
- ec2-run-instances ami-03d6336a -k gsg-keypair
- ec2-describe-instances i-8d3dcbe4
- ec2-authorize default -p 22
- ec2-authorize default -p 80
- ssh -i id_rsa-gsg-keypair root@ec2-72-44-50-173.z-1.compute-1.amazonaws.com
- ec2-terminate-instances i-8d3dcbe4