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

Add support for load_balancing_algorithm_type in elb_target_group #1016

Conversation

marknet15
Copy link
Contributor

@marknet15 marknet15 commented Mar 25, 2022

SUMMARY

AWS has supported setting the load_balancing.algorithm.type for a little while now allowing you to choose between either round_robin or least_oustanding_requests this PR adds support for setting the new parameter.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

elb_target_group

ADDITIONAL INFORMATION

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/elbv2.html#ElasticLoadBalancingv2.Client.modify_target_group_attributes
https://aws.amazon.com/about-aws/whats-new/2019/11/application-load-balancer-now-supports-least-outstanding-requests-algorithm-for-load-balancing-requests/

@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Mar 25, 2022
@markuman
Copy link
Member

I've tried that also in the past #282

The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address

So when a target group is attached to a classic loadbalancer, or to an NLB, it will fail.
It will also fail when the targets are lambda functions.

@marknet15
Copy link
Contributor Author

marknet15 commented Mar 25, 2022

@markuman i think that's fine, I'll document it so it's clear, there's another example already in the module "deregistration_connection_termination" that only applies to NLB

We could also limit to if protocol is http / https I think but probably documenting is enough

@markuman markuman added the backport-3 PR should be backported to the stable-3 branch label Mar 26, 2022
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marknet15 Thank you. Only two very small things, otherwise, LGTM!

plugins/modules/elb_target_group.py Outdated Show resolved Hide resolved
plugins/modules/elb_target_group.py Outdated Show resolved Hide resolved
marknet15 and others added 3 commits March 28, 2022 09:39
Co-authored-by: Alina Buzachis <abuzachis@redhat.com>
Co-authored-by: Alina Buzachis <abuzachis@redhat.com>
@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label Mar 28, 2022
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 10137a2 into ansible-collections:main Mar 28, 2022
@patchback
Copy link

patchback bot commented Mar 28, 2022

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/10137a2af1967affcd656655bcc5feb23f2aa20c/pr-1016

Backported as #1022

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 28, 2022
)

Add support for load_balancing_algorithm_type in elb_target_group

SUMMARY
AWS has supported setting the load_balancing.algorithm.type for a little while now allowing you to choose between either round_robin or least_oustanding_requests this PR adds support for setting the new parameter.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_target_group
ADDITIONAL INFORMATION
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/elbv2.html#ElasticLoadBalancingv2.Client.modify_target_group_attributes
https://aws.amazon.com/about-aws/whats-new/2019/11/application-load-balancer-now-supports-least-outstanding-requests-algorithm-for-load-balancing-requests/

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Woolley <mw@marknet15.com>
(cherry picked from commit 10137a2)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Mar 28, 2022
) (#1022)

[PR #1016/10137a2a backport][stable-3] Add support for load_balancing_algorithm_type in elb_target_group

This is a backport of PR #1016 as merged into main (10137a2).
SUMMARY
AWS has supported setting the load_balancing.algorithm.type for a little while now allowing you to choose between either round_robin or least_oustanding_requests this PR adds support for setting the new parameter.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_target_group
ADDITIONAL INFORMATION
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/elbv2.html#ElasticLoadBalancingv2.Client.modify_target_group_attributes
https://aws.amazon.com/about-aws/whats-new/2019/11/application-load-balancer-now-supports-least-outstanding-requests-algorithm-for-load-balancing-requests/
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
Add changelog and update FQDN

SUMMARY

Update FQDN and add missing changelog ansible-collections#997

ISSUE TYPE


Docs Pull Request

COMPONENT NAME

cloudtrail

Reviewed-by: Jill R <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mike Graves <mgraves@redhat.com>
Reviewed-by: Gonéri Le Bouder <goneri@lebouder.net>
Reviewed-by: Mark Chappell <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3 PR should be backported to the stable-3 branch community_review feature This issue/PR relates to a feature request integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants