From 40b8a93930343bbfc0c0c076c0ccc5d6d8503c41 Mon Sep 17 00:00:00 2001 From: Maarten van der Hoef Date: Mon, 21 Jan 2019 17:00:07 +0100 Subject: [PATCH] Generic awsvpc support, not just Fargate --- provider/ecs/ecs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/ecs/ecs.go b/provider/ecs/ecs.go index 6076df7a3..c3668e94e 100644 --- a/provider/ecs/ecs.go +++ b/provider/ecs/ecs.go @@ -293,7 +293,7 @@ func (p *Provider) listInstances(ctx context.Context, client *awsClient) ([]ecsI } var mach *machine - if aws.StringValue(task.LaunchType) == ecs.LaunchTypeFargate { + if len(task.Attachments) != 0 { var ports []portMapping for _, mapping := range containerDefinition.PortMappings { if mapping != nil {