AWS Application Load Balancers now supports alternative routing algorithms for Target Groups, starting with Least Outstanding Requests.
resource "aws_lb_target_group" "test" {
name = "tf-example-lb-tg"
port = 80
protocol = "HTTP"
vpc_id = aws_vpc.main.id
load_balancing {
algorithm {
# type = "round_robin" # Default
type = "least_outstanding_requests"
}
}
}
Support for a new load_balancing_algorithm_type argument with the aws_lb_target_group resource (aliased with aws_alb_target_group as well) has been merged and will release with version 2.52.0 of the Terraform AWS Provider, Thursday this week. Thanks to @dhoeric for the implementation. 👍
This has been released in version 2.52.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Support for a new
load_balancing_algorithm_typeargument with theaws_lb_target_groupresource (aliased withaws_alb_target_groupas well) has been merged and will release with version 2.52.0 of the Terraform AWS Provider, Thursday this week. Thanks to @dhoeric for the implementation. 👍