mitchellh/packer — pull request #162 by brendanhay (2013-07-10 08:16:48+00:00)
Title: Ability to specify a pre-existing SecurityGroupId for the AmazonEBS Builder

Adds `security_group_id` to the builder configuration for the `amazonebs` builder.

This allows you to use an existing Security Group and have the provisioning step communicate with other nodes in EC2 securely (ie. an APT repository).

If specified the builder will continue with the given id, otherwise it'll will proceed
with creating the temporary group and retrieving it's id.

Since `s.groupId` is not set `CleanUp` returns without attempting to delete the group.