2017-08-12 48 views
0

在我的CI我运行: aws ecs wait services-stable --cluster $CLUSTER --services $SERVICEaws ecs等待服务需要哪些安全性 - 稳定?

这与我的IAM凭证作品完美,但对于CI我倒范围的凭证失败:

In function length(), invalid type for value: None, expected one of: ['string', 'array', 'object'], received: "null"

政策附着在CI组授予以下:

"ecs:ListClusters", "ecs:ListServices", "ecs:CreateService", "ecs:UpdateService", "ecs:DeleteService", "ecs:RegisterTaskDefinition", "ecs:DiscoverPollEndpoint", "ecs:Poll", "ecs:DeregisterTaskDefinition", "ecs:ListTaskDefinitions", "ecs:ListTasks", "ecs:RunTask", "ecs:StartTask", "ecs:StopTask", "ecs:SubmitTaskStateChange", "autoscaling:DescribeAutoScalingGroups", "autoscaling:UpdateAutoScalingGroup", "iam:ListServerCertificates", "cloudformation:DescribeStacks"

我曾想过给予投票和DIS coverPollEndpoint将覆盖等待。我错过了什么?

谢谢!

回答

1

aws ecs wait services-stable要求ecs:DescribeServices。你可以看到服务员here的来源。

ecs:Pollecs:DiscoverPollEndpoint(和一些其他操作)仅供ECS代理使用;您不需要将这些权限授予ECS代理以外的任何其他权限。

+0

谢谢!链接到源代码也是非常有用的下一次。 –

+0

作为一个后来的想法,如果错误消息给出了缺少权限的指示,那将是非常有用的。也许有些东西需要投入积压。例如,aws s3 cp可以非常有效地告诉你哪些许可没有授予。 –