Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Sid": "AllowFullResource",
  6. "Effect": "Allow",
  7. "Action": [
  8. "ecs:CreateCluster",
  9. "ecs:DiscoverPollEndpoint",
  10. "ecs:Poll",
  11. "ecs:RegisterContainerInstance",
  12. "ecs:StartTelemetrySession",
  13. "ecs:Submit*",
  14. "ecr:GetAuthorizationToken",
  15. "ecr:BatchCheckLayerAvailability",
  16. "ecr:GetDownloadUrlForLayer",
  17. "ecr:BatchGetImage",
  18. "logs:CreateLogStream",
  19. "logs:PutLogEvents",
  20. "batch:List*",
  21. "batch:Describe*"
  22. ],
  23. "Resource": "*"
  24. },
  25. {
  26. "Sid": "S3",
  27. "Action": "s3:*",
  28. "Effect": "Allow",
  29. "Resource": [
  30. "arn:aws:s3:::mli-*",
  31. "arn:aws:s3:::mli-*/*"
  32. ]
  33. },
  34. {
  35. "Sid": "AllowSNSTopicPublish",
  36. "Action": [
  37. "sns:Publish"
  38. ],
  39. "Effect": "Allow",
  40. "Resource": [
  41. "arn:aws:sns:*:141988508569:mli-*"
  42. ]
  43. },
  44. {
  45. "Sid": "AllowPublishRecsToBTAAndP13",
  46. "Action": [
  47. "kinesis:DescribeStream",
  48. "kinesis:PutRecord*"
  49. ],
  50. "Effect": "Allow",
  51. "Resource": [
  52. "arn:aws:kinesis:*:141988508569:stream/bta-*",
  53. "arn:aws:kinesis:*:141988508569:stream/mli-*",
  54. "arn:aws:kinesis:*:141988508569:stream/p13n-*"
  55. ]
  56. },
  57. {
  58. "Sid": "ECSWithRestrictions",
  59. "Action": [
  60. "ecs:DeleteAttributes",
  61. "ecs:PutAttributes ",
  62. "ecs:UpdateContainerInstancesState",
  63. "ecs:UpdateContainerAgent",
  64. "ecs:StartTask",
  65. "ecs:StopTask",
  66. "ecs:RunTask"
  67. ],
  68. "Effect": "Allow",
  69. "Resource": "*",
  70. "Condition": {
  71. "ArnEquals": {
  72. "ecs:cluster": "arn:aws:ecs:*:141988508569:cluster/mli-*"
  73. }
  74. }
  75. },
  76. {
  77. "Sid": "AwsBatchPermissions",
  78. "Action": [
  79. "batch:SubmitJob"
  80. ],
  81. "Effect": "Allow",
  82. "Resource": [
  83. "arn:aws:batch:*:*:job-definition/mli*",
  84. "arn:aws:batch:*:*:job-queue/mli*"
  85. ]
  86. },
  87. {
  88. "Sid": "ECSWithRestrictions2",
  89. "Action": [
  90. "ecs:DeleteCluster",
  91. "ecs:DeregisterContainerInstance",
  92. "ecs:SubmitContainerStateChange",
  93. "ecs:SubmitTaskStateChange",
  94. "ecs:UpdateContainerInstancesState",
  95. "ecs:UpdateContainerAgent",
  96. "ecs:*Task",
  97. "ecs:*Attributes"
  98. ],
  99. "Effect": "Allow",
  100. "Resource": [
  101. "arn:aws:ecs:*:141988508569:cluster/mli-*"
  102. ]
  103. }
  104. ]
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement