This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Docker compose cli support for ECS with VPCs without public subnets #2125
Open
Description
Description
The current implementation relies on VPCs with public subnets, and if there are no public subnets it throws an error straight away.
I'm working in a use case where the VPC where I want to deploy the stack has only private subnets. I'm using Transit Gateway, and Egress traffic to the internet is done via an egress VPC.
I would like to be able to use Docker compose for this scenario.
A simple solution could be to add the following parameter:
x-aws-subnets:
- subnet1
- subnet2
Then based on the discovery of the subnet if it's public or private, it could then determine automatically the LoadBalancer scheme (internal / internet-facing).