2017-08-12 47 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可以非常有效地告訴你哪些許可沒有授予。 –