I have a Java webapp deployed in ECS using the tomcat:8.5-jre8-alpine image. The network mode for this task is awsvpc; I have many of these tasks running across 3 EC2 instan
You dont need the linking part at all, because awsvpc allows you to reference other containers simply by using
localhost:8080 (or whatever port is your other container mapped to)
in your nginx config file.
So remove links from your json and use localhost:{container-port} in nginx config. Simple as that.