From 3404a6857fb892ca2fbef43a667ecefd106768a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saulius=20Grigali=C5=ABnas?= Date: Thu, 6 Sep 2018 15:03:32 +0300 Subject: [PATCH] Ignore Fargate instances Use service discovery for ECS (EC2) tasks only until proper support is added. --- discoverecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discoverecs.py b/discoverecs.py index 6be75f0..8c4cd00 100644 --- a/discoverecs.py +++ b/discoverecs.py @@ -194,7 +194,7 @@ def fetcher(ids): t.ec2_instance = dict_get(instances, t.container_instance['ec2InstanceId'], None) def get_infos_for_cluster(self, cluster_arn): - tasks_pages = self.ecs_client.get_paginator('list_tasks').paginate(cluster=cluster_arn) + tasks_pages = self.ecs_client.get_paginator('list_tasks').paginate(cluster=cluster_arn, launchType='EC2') task_infos = [] for task_arns in tasks_pages: if task_arns['taskArns']: