It is recommended to use VPC for AWS ECS. The VPC endpoints enable ECS to communicate with other AWS service endpoints that are public.