[cs615asa] cs615 hw6

Jan Schaumann jschauma at cs.stevens.edu
Mon Apr 25 13:09:54 EDT 2011


Pengfei Liu <pliu3 at stevens.edu> wrote:
 
>  When I run "ec2-run-instances" without specifying the key pair ('-k'), I
> cannot ssh the instance because of permission denied (public key). So I
> still need to ask the user to set '-k' flag to environment
> "EC2_RUN_INSTANCES_FLAGS".

You do not need to ask the user anything.  If the user wishes to use the
'-k' flag, then she can set it via the EC2_RUN_INSTANCES_FLAGS
environment variable.  Your program does not need to verify that this
variable contains the '-k' flag or anything.

-Jan


More information about the cs615asa mailing list