-
Notifications
You must be signed in to change notification settings - Fork 340
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
elb_application_lb - Module fails if listener default action is anything other than Forward #2376
Comments
* r71127-r71052-attemt-to-workaround-elb-module-change-or-bug * debug alb issue * revert changes as the bug is outside of ce-provision ansible-collections/amazon.aws#2376
Same here, is there a workaround like pinning a version? |
Same here, i fixed last version 8.2.1 to workaround |
As a workaround, I'm using current_actions_sorted = _sort_actions(
{
k: v
for k, v in x.items()
if k
in ["AuthenticateOidcConfig", "FixedResponseConfig", "RedirectConfig", "TargetGroupArn", "Type"]
}
for x in current_default_actions
)
if current_actions_sorted != _sort_actions(new_default_actions):
Now, the module does not fail anymore, but it always returns as "changed". This is what I could do: I lack some skills to code a 100% working solution, sorry. |
SUMMARY Fixes #2376. ISSUE TYPE Bugfix Pull Request COMPONENT NAME elbv2 elb_application_lb ADDITIONAL INFORMATION Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Bikouo Aubin
Summary
elb_application_lb
module fails if any of load balancer listeners contain any action other thanforward
underDefaultActions
.For example:
works, while:
doesn't.
Same is true of other types of actions:
redirect
,fixed-response
, orauthenticate-oidc
.I believe this was introduced in #2050 and is triggered by these lines in:
line 163:
line 799:
Issue Type
Bug Report
Component Name
elb_application_lb
Ansible Version
Collection Versions
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Steps to Reproduce
Expected Results
A load balancer is created or updated successfully.
Resulting load balancer has a listener on port 80 that redirects to port 443, and a listener on port 443 that returns a fixed response of HTTP 404.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: