From 92173eaf352f8c3eb2ad6d064048a2af54dfbed6 Mon Sep 17 00:00:00 2001 From: aiordache Date: Wed, 3 Jun 2020 16:56:13 +0200 Subject: [PATCH] add SO link for issue if listener is not in service dependencies Signed-off-by: aiordache Signed-off-by: Nicolas De Loof --- ecs/pkg/amazon/cloudformation.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ecs/pkg/amazon/cloudformation.go b/ecs/pkg/amazon/cloudformation.go index 4c57a7c7..a2df3f8e 100644 --- a/ecs/pkg/amazon/cloudformation.go +++ b/ecs/pkg/amazon/cloudformation.go @@ -236,6 +236,8 @@ func (c client) Convert(project *compose.Project) (*cloudformation.Template, err strings.ToUpper(port.Protocol), string(port.Published), ) + //add listener to dependsOn + //https://stackoverflow.com/questions/53971873/the-target-group-does-not-have-an-associated-load-balancer dependsOn = append(dependsOn, listenerName) template.Resources[listenerName] = &elasticloadbalancingv2.Listener{ DefaultActions: []elasticloadbalancingv2.Listener_Action{