What you say makes sense and I think it is an unintentional limitation
in the current code.
Some additional context here: the "securityGroups" option [1]
originally (and perhaps still - sorry, can't check the code now :-()
refers to "old style" security groups, which *were* incompatible with
VPCs for a long time.
The "new style" security groups are specified using the
"securityGroupIds" option instead [2]. If the distinction between the
two types no longer exists, then some code simplification should
certainly be possible!
See also this thread: http://markmail.org/thread/gmnffrbqibfwqczr
Regards
ap
[1]
http://jclouds-javadocs.elasticbeanstalk.com/org/jclouds/aws/ec2/compute/AWSEC2TemplateOptions.html#securityGroups(java.lang.String...)
[2]
http://jclouds-javadocs.elasticbeanstalk.com/org/jclouds/aws/ec2/compute/AWSEC2TemplateOptions.html#securityGroupIds(java.lang.Iterable)
--
Andrew Phillips
Apache jclouds