includes:"TAGS" is required for DescribeServices

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-06-29 10:44:40 +02:00
parent 934e7ab9ea
commit d2911c1ea9
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 3 additions and 2 deletions

View File

@ -353,6 +353,7 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
services, err := s.ECS.DescribeServicesWithContext(ctx, &ecs.DescribeServicesInput{
Cluster: aws.String(cluster),
Services: list.ServiceArns,
Include: aws.StringSlice([]string{"TAGS"}),
})
if err != nil {
return nil, err
@ -375,8 +376,8 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
status = append(status, compose.ServiceStatus{
ID: *service.ServiceName,
Name: name,
Replicas: int(*services.Services[0].RunningCount),
Desired: int(*services.Services[0].DesiredCount),
Replicas: int(*service.RunningCount),
Desired: int(*service.DesiredCount),
})
}