Skip to content

Instantly share code, notes, and snippets.

@sgargan
Created June 5, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgargan/c88b838845fd51a41c9c to your computer and use it in GitHub Desktop.
Save sgargan/c88b838845fd51a41c9c to your computer and use it in GitHub Desktop.
ELB security group issue
Ensure blah-test-uswest2 elb exists:
boto_elb.present:
- name: blah-test-uswest2
- scheme: internet-facing
- region: us-west-2
- security_groups:
- my_balancer_security
- availability_zones:
- us-west-2a
- us-west-2b
- us-west-2c
- listeners:
- elb_port: 80
instance_port: 1234
elb_protocol: HTTP
Running state [blah-test-uswest2] at time 21:41:40.870284
2015-06-05 21:41:40,871 [salt.state ][INFO ] Executing state boto_elb.present for blah-test-uswest2
2015-06-05 21:41:41,612 [salt.loaded.int.module.boto_elb ][ERROR ] Failed to create ELB blah-test-uswest2: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/">
<Error>
<Type>Sender</Type>
<Code>InvalidSecurityGroup</Code>
<Message>Invalid id: &quot;my_balancer_security&quot; (expecting &quot;sg-...&quot;) (Service: AmazonEC2; Status Code: 400; Error Code: InvalidGroupId.Malformed; Request ID: 11427d7e-11dd-4a8a-9b73-a05b1242d5e0)</Message>
</Error>
<RequestId>a6d4f8f4-0bcb-11e5-8f97-37daf5a8b136</RequestId>
</ErrorResponse>
2015-06-05 21:41:41,614 [salt.state ][ERROR ] Failed to create blah-test-uswest2 ELB.
2015-06-05 21:41:41,615 [salt.state ][INFO ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment