Hi Aldrin,
We're using the sequence upload-source-bundle, create-application-version and replace-environment in order to replace a running environment with a new version of our software. The running environment shows the following configuration for security groups: sg-dc6d20b8,sg-214b1c45. The configuration for beanstalker plugin has the following value for security groups: <beanstalk.securityGroups>sg-dc6d20b8,sg-214b1c45.</beanstalk.securityGroups>.
The problem is that we're always getting an IllegalArgumentException complaining about security group spec. I've traced the error to AbstractBeanstalkMojo class. I can see that the error happens because the plugin validates that value against a single security group regex. According to beanstalk configuration (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html), several security group ids are allowed as we're deploying into a public/private VPC.
Please, could you explain this behaviour?. If this is fine, which is the workaround?.