EC2 classic + ELB

Hi,

In EC2 classic one cannot define Security Groups on the ELB, instead a default value of ‘amazon-elb/amazon-elb-sg’ with id ‘sg-35b1b441’ is used.
If you try to modify a security group that refers to this pre-defined security group ansible will throw a KeyError for the id.

For example, manually create a security group ‘test’, and add ‘amazon-elb/amazon-elb-sg’ to it.
Now attempt to run Ansible to (re-)create the security group ‘test’, it will fail with:

BECOME-SUCCESS--------------------------------
Traceback (most recent call last):
File “/path/omitted/ec2_group”, line 2187, in
main()
File “/path/omitted/ec2_group”, line 310, in main
grantGroup = groups[grant.group_id]
KeyError: u’sg-35b1b441’

Thanks,
Nico