[cs615asa] CS615 HW3 -- start instance
Pengfei Liu
pliu3 at stevens.edu
Fri Mar 18 10:38:20 EDT 2011
Dear Professor,
I have some confusion about ec2-start-instance's options.
In your example "$ ec2-start-instance -a ami-19a34270 i-db464ab7
ec2-75-101-236-71.compute-1.amazonaws.com", if the "-a AMI" is specified,
why "ami-19a34270", "i-db464ab7" and
"ec2-75-101-236-71.compute-1.amazonaws.coma" are used at the same time?
If you want to create a new instance, the parameter is "-a ami-19a34270".
"ami-19a34270" is the new ami id. Waiting the new instance is being
created, it needs about 1 minute. Is this all the job of
"ec2-start-instance"? Connecting to instance needs instance id and public
dns. After that, if you want to connect to that new instance First,
"ec2-run-instance ami-19a34270 -k keypair" returns the new instance id
"i-db464ab7". Second, "ec2-describe-instances i-db464ab7“ returns the
public dns "ec2-75-101-236-71.compute-1.amazonaws.com". Is connection to
instance also the job of "ec2-start-instance"?
As mentioned above, if you want to connect to an instance which is
already created, public dns is needed. The parameter is "-a
ec2-75-101-236-71.compute-1.amazonaws.com" by running "ssh -i keypair
root at ec2-75-101-236-71.compute-1.amazonaws.com".
Is my understanding right? Thank you
Sincerely,
Pengfei Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.stevens.edu/cgi-bin/mailman/private/cs615asa/attachments/20110318/d7d60744/attachment.htm
More information about the cs615asa
mailing list