Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 5d5a00f

Browse files
committed
fix loadbalancer subnets
1 parent 2709a6b commit 5d5a00f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ecs/awsResources.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ func (b *ecsAPIService) ensureLoadBalancer(r *awsResources, project *types.Proje
464464
}
465465

466466
var publicSubNetIDs []string
467-
for _, subNetID := range r.subnetsIDs() {
468-
publicSubNetIDs = append(publicSubNetIDs, subNetID)
467+
for _, subNetID := range r.subnets.public {
468+
publicSubNetIDs = append(publicSubNetIDs, subNetID.ID())
469469
}
470470

471471
template.Resources["LoadBalancer"] = &elasticloadbalancingv2.LoadBalancer{

0 commit comments

Comments
 (0)