terraform-aws-alb icon indicating copy to clipboard operation
terraform-aws-alb copied to clipboard

One listener, multiple target groups

Open shriyo101 opened this issue 1 year ago β€’ 4 comments

Is your request related to a new offering from AWS?

yes

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

  • No πŸ›‘: please wait to file a request until the functionality is avaialble in the AWS provider
  • Yes βœ…: please list the AWS provider version which introduced this functionality

Is your request related to a problem? Please describe.

I was trying to add one listener and wanted to add ips as targets currently I do have that setup done manually, but was not able to achieve it in terraform module v9.9.0

Describe the solution you'd like.

Able to add a listener pointing to multiple targets.

Describe alternatives you've considered.

Additional context

ex: forward = { target_group_key = ["t1", "t2"] }

shriyo101 avatar Jul 02 '24 04:07 shriyo101

Having the same issue as well. Any traction on this?

surry355f1 avatar Jul 18 '24 05:07 surry355f1

@shriyo101 , I managed to achieve something workable for now. It doesn't solve the issue of 1 listener > multiple target groups. But it does solve 1 listener to multiple IPs. Have a look at additional_target_group_attachments: https://github.com/terraform-aws-modules/terraform-aws-alb/issues/316

Theres an example in the above as well as: https://github.com/terraform-aws-modules/terraform-aws-alb/blob/master/examples/complete-alb/main.tf

hth

surry355f1 avatar Jul 18 '24 05:07 surry355f1

HI @surry355f1

I did try https://github.com/terraform-aws-modules/terraform-aws-alb/issues/316 but it dint not work as expected. Hence raised this ticket..

shriyo101 avatar Jul 24 '24 18:07 shriyo101

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Aug 24 '24 00:08 github-actions[bot]

This issue was automatically closed because of stale in 10 days

github-actions[bot] avatar Sep 03 '24 00:09 github-actions[bot]

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Oct 03 '24 02:10 github-actions[bot]