Load Balancer via Cloudformation

0

Is it possible to associate more than one application to an ELB generated by cloudformation using target groups?

1 Answer
0
Accepted Answer

Hi,

Yes is possible.

You can associate a load balancer with multiple target groups by linking them via listener using the aws::ElasticLoadBalancingV2::Listener type:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html

And in its default actions you can specify target group arns https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-action.html

Hope it helps ;)

profile picture
EXPERT
answered a year ago
  • Thank you for your help. from what I saw in the documentation it is Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer. If it is an ELB classic does it also work?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions