amazon web services - Launching Instances in Default VPC Produces Error -


i'm trying launch webservers webservers security group, this:

$ aws ec2 run-instances --image-id ami-someami --count 2 --instance-type m3.medium --key-name some_key --security-groups webservers  client error (invalidparametercombination) occurred when calling runinstances operation: vpc security groups may not used non-vpc launch 

what gives? want launch boxes default vpc. don't want specify subnet, if do, can no longer specify security group. i'm new ec2, , rather not worry doing non-default things vpc until have to.

security groups linked specific vpcs.

check whether security group associated vpc different 1 in launching amazon ec2 instance (in case, different default vpc).

if so, create new security group in default vpc , use when launching instances.

if using ec2-classic (not vpc), note following aws cli documentation on run-instances:

--security-groups (list)

[ec2-classic, default vpc] 1 or more security group names. nondefault vpc, must use security group ids instead.

so, try using --security-group-ids id.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -