この記事は AWS Fargate Advent Calendar 2017 の19日目の記事です。 cloudpack大阪の佐々木です。 Fargateでコンテナ間通信させるときの話です。 概要 Docker環境で、コンテナ間で通信させるためにLinkという機能があります。1 ECS上でLink機能を使用しているタスク定義を、Fargateで実行しようとしてもエラーになって動きません。 実行結果 まず簡単な例として、Wordpress + MySQLという構成があるとします。2 WordpressコンテナとMySQLコンテナがあって、Wordpressの方にLinkを指定することで、mysqlという名前で通信できるようになります。 version: '2' services: wordpress: image: wordpress ports: - "80:80" links: - my