AWS Fargate: Networking Options for Tasks in Private Subnets
When your applications are running in containers on Fargate, there are a few options for getting internet access to them. If they can't be placed in public subnets, NAT Gateway or VPC Endpoints are common solutions for Fargate tasks in private subnets.