A load balancer cannot be attached to multiple subnets in the same Availability Zone
Description
Our VPC has multiple subnets on the same availability Zone. When attempting to run docker compose up compose begins, but fails on the load balancer with the following error:
A load balancer cannot be attached to multiple subnets in the same Availability Zone (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: InvalidConfigurationRequest
Steps to reproduce the issue:
Pull most recent docker-magento with existing project
Create new ECS context
Try to run docker compose up on the new context
Expected Outcome: Successfully run and finish building docker containers.
Actual Outcome: Fails on load balancer with error: A load balancer cannot be attached to multiple subnets in the same Availability Zone (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: InvalidConfigurationRequest
What has been tried: Tried specifying VPC Tried specifying subnet(s)
I'll leave this ticket open for a bit in case someone else wants to chime in, but note that this environment is intended purely for local development purposes. It is not meant to run on production.