如何使用 Terraform 实现 ALB 加权目标组

How to achieve ALB weighted target groups with Terraform

ALB 上有一些新功能,允许在具有加权优先级的侦听器上使用多个目标组。潜在的配置将允许 aws_lb_listener_rule 上的多个操作块包含一个优先级。

AWS 参考:https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html

我们如何使用 Terraform 实现这一目标

通常,AWS 宣布新功能以及在 Terraform 中提供新功能时会有延迟,因为 Terraform 资源需要实施新的 API calls/functionality.

在这种情况下,似乎有一个 open issue on the terraform-provider-aws repo to support this behavior. There's an open pull request 可以解决 草稿 模式中的问题。