Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Sid": "Stmt1452746887373",
  6. "Action": [
  7. "ecs:RegisterTaskDefinition",
  8. "ecs:DeregisterTaskDefinition",
  9. "ecs:ListClusters",
  10. "ecs:DescribeContainerInstances",
  11. "ecs:ListTaskDefinitions",
  12. "ecs:DescribeTaskDefinition"
  13. ],
  14. "Effect": "Allow",
  15. "Resource": "*"
  16. },
  17. {
  18. "Sid": "Stmt1452746887374",
  19. "Action": [
  20. "ecs:StopTask",
  21. "ecs:ListContainerInstances"
  22. ],
  23. "Effect": "Allow",
  24. "Resource": "arn:aws:ecs:<region>:<accountId>:cluster/<clusterName>"
  25. },
  26. {
  27. "Sid": "Stmt1452746887375",
  28. "Action": [
  29. "ecs:RunTask"
  30. ],
  31. "Effect": "Allow",
  32. "Resource": "arn:aws:ecs:<region>:<accountId>:task-definition/jenkins-agent:*"
  33. },
  34. {
  35. "Sid": "Stmt1452746887376",
  36. "Action": [
  37. "ecs:StopTask",
  38. "ecs:DescribeTasks"
  39. ],
  40. "Effect": "Allow",
  41. "Resource": "arn:aws:ecs:<region>:<accountId>:task/*"
  42. }
  43. ]
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement