I have a scenario where I am hosting some ECS container and tasks as a result in a private subnet. I then have 2 more private subnets in different AZ’s which have /28 cidr ranges which are accessible from the company network only. My issue is that there are only a few IP address available in both of these subnets which means that I can’t set up any AWS Load Balancer as there is a requirement that there are 8 free IP address available in each subnet.
I am trying to find an alternative way to have access to the ECS task considering the IP addresses will be updated when the task is recreated. I need to make sure that whatever the solution is that is it hosted in these 2 private subnets where the CIDR range is /28.