EC2 classic + ELB

19 views
Skip to first unread message

Nico K.

unread,
Apr 20, 2015, 9:17:25 AM4/20/15
to ansible...@googlegroups.com
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 <module>
    main()
  File "/path/omitted/ec2_group", line 310, in main
    grantGroup = groups[grant.group_id]
KeyError: u'sg-35b1b441'

Thanks,
Nico
Reply all
Reply to author
Forward
0 new messages