-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: amazon-ecs-plugin
-
None
-
Environment:jenkins: 2.9, Amazon EC2 Container Service plugin: 1.3
The privileges listed in the documentation are not enough to successfully start a task in the ECS cluster.
The resources "arn:aws:ecs:<region>:<account-id>:task-definition/jenkins-slave:*" must be added. For example:
{
"Version": "2012-10-17",
"Statement": [
,
{ "Sid": "Stmt1452779658000", "Effect": "Allow", "Action": [ "ecs:RegisterTaskDefinition", "ecs:ListClusters" ], "Resource": [ "*" ] } ]
}