We have an application that uses a docker layout that contains links.
I am trying to deploy this using aws-cli on Amazon Fargate using the following command:
ecs-cli compose --project-name myApp --file docker-compose-aws.yml --ecs-params fargate-ecs-params.yml --cluster myCluster --region us-east-1 up --launch-type FARGATE
When mine fargate-ecs-params.yml
has it ecs_network_mode: awsvpc
, I get an error:
Links are not supported when networkMode=awsvpc
So, I tried switching to ecs_network_mode: awsvpc
, but then I got the error:
Fargate only supports network mode ‘awsvpc’
My question is: how do I create a task definition for Fargate using a layout file that contains links? Or is it impossible (and in that case, what are my alternatives?)
source
share