Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fog::AWS::ELB::InvalidConfigurationRequest: policy cannot be enabled #193

Closed
FestivalBobcats opened this issue Oct 27, 2015 · 3 comments
Closed

Comments

@FestivalBobcats
Copy link

Hi, I'm running Fog 1.35.0, and Fog::AWS 0.7.6.

I cannot seem to attach a policy to a listener on a load balancer:

elb = service.load_balancers.get('test') # newly created

policy = elb.policies.create id: 'proxy-policy-test',
                             type_name: 'ProxyProtocolPolicyType',
                             policy_attributes: {'ProxyProtocol' => true})

elb.set_listener_policy(80, policy.id)

=> Fog::AWS::ELB::InvalidConfigurationRequest: proxy-policy-test cannot be enabled

Just attempting to apply the policy to the default HTTP listener on the ELB. It has not worked for other ports either, though I have not tried other policy types.

Has anyone seen anything like this?

@geemus
Copy link
Member

geemus commented Oct 30, 2015

@mikehale any chance you know a bit more about this (or could tell me a different person to ask). Thanks!

@FestivalBobcats
Copy link
Author

So, this is what ended up solving my problem. Maybe I was doing something wrong?

@fog.set_load_balancer_policies_for_backend_server(elb.id, 80, [policy.id])

@geemus
Copy link
Member

geemus commented Nov 3, 2015

@FestivalBobcats thanks for the update. Afraid I lack the familiarity to say, but glad you found a fix.

@geemus geemus closed this as completed Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants