From 8f2f7302028e1880281a30ba0e3aec377e61281f Mon Sep 17 00:00:00 2001 From: Pascal Euhus Date: Sun, 14 Feb 2021 22:10:20 +0100 Subject: [PATCH] fix loadbalancer subnets Signed-off-by: Pascal Euhus --- ecs/awsResources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecs/awsResources.go b/ecs/awsResources.go index e97d8a134..bcea3dc43 100644 --- a/ecs/awsResources.go +++ b/ecs/awsResources.go @@ -464,8 +464,8 @@ func (b *ecsAPIService) ensureLoadBalancer(r *awsResources, project *types.Proje } var publicSubNetIDs []string - for _, subNetID := range r.subnetsIDs() { - publicSubNetIDs = append(publicSubNetIDs, subNetID) + for _, subNetID := range r.subnets.public { + publicSubNetIDs = append(publicSubNetIDs, subNetID.ID()) } template.Resources["LoadBalancer"] = &elasticloadbalancingv2.LoadBalancer{