aws / amazon-ecs-cli

The Amazon ECS CLI enables users to run their applications on ECS/Fargate using the Docker Compose file format, quickly provision resources, push/pull images in ECR, and monitor running applications on ECS/Fargate.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html
Other
1.78k stars 303 forks source link

ecs-cli compose task failing with "Fargate only supports network mode ‘awsvpc’" #1145

Open solpunit opened 2 years ago

solpunit commented 2 years ago

I am trying to create the compose file and it is failing, please help.

/usr/local/bin/ecs-cli compose --file helloworld.yml up ERRO[0000] Error registering task definition error="ClientException: Fargate only supports network mode ‘awsvpc’." family=Downloads ERRO[0000] Create task definition failed error="ClientException: Fargate only supports network mode ‘awsvpc’." FATA[0000] ClientException: Fargate only supports network mode ‘awsvpc’.