add SO link for issue if listener is not in service dependencies

Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
aiordache 2020-06-03 16:56:13 +02:00 committed by Nicolas De Loof
parent ae3101fe12
commit 92173eaf35
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 2 additions and 0 deletions

View File

@ -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{