Guest User

Untitled

a guest
Apr 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Effect": "Allow",
  6. "Action": [
  7. "sagemaker:*"
  8. ],
  9. "Resource": "*"
  10. },
  11. {
  12. "Effect": "Allow",
  13. "Action": [
  14. "ecr:GetAuthorizationToken",
  15. "ecr:GetDownloadUrlForLayer",
  16. "ecr:BatchGetImage",
  17. "ecr:BatchCheckLayerAvailability",
  18. "cloudwatch:PutMetricData",
  19. "cloudwatch:PutMetricAlarm",
  20. "cloudwatch:DescribeAlarms",
  21. "cloudwatch:DeleteAlarms",
  22. "ec2:CreateNetworkInterface",
  23. "ec2:CreateNetworkInterfacePermission",
  24. "ec2:DeleteNetworkInterface",
  25. "ec2:DeleteNetworkInterfacePermission",
  26. "ec2:DescribeNetworkInterfaces",
  27. "ec2:DescribeVpcs",
  28. "ec2:DescribeDhcpOptions",
  29. "ec2:DescribeSubnets",
  30. "ec2:DescribeSecurityGroups",
  31. "application-autoscaling:DeleteScalingPolicy",
  32. "application-autoscaling:DeleteScheduledAction",
  33. "application-autoscaling:DeregisterScalableTarget",
  34. "application-autoscaling:DescribeScalableTargets",
  35. "application-autoscaling:DescribeScalingActivities",
  36. "application-autoscaling:DescribeScalingPolicies",
  37. "application-autoscaling:DescribeScheduledActions",
  38. "application-autoscaling:PutScalingPolicy",
  39. "application-autoscaling:PutScheduledAction",
  40. "application-autoscaling:RegisterScalableTarget",
  41. "logs:CreateLogGroup",
  42. "logs:CreateLogStream",
  43. "logs:DescribeLogStreams",
  44. "logs:GetLogEvents",
  45. "logs:PutLogEvents"
  46. ],
  47. "Resource": "*"
  48. },
  49. {
  50. "Effect": "Allow",
  51. "Action": [
  52. "s3:GetObject",
  53. "s3:PutObject",
  54. "s3:DeleteObject"
  55. ],
  56. "Resource": [
  57. "arn:aws:s3:::*SageMaker*",
  58. "arn:aws:s3:::*Sagemaker*",
  59. "arn:aws:s3:::*sagemaker*"
  60. ]
  61. },
  62. {
  63. "Effect": "Allow",
  64. "Action": [
  65. "s3:CreateBucket",
  66. "s3:GetBucketLocation",
  67. "s3:ListBucket",
  68. "s3:ListAllMyBuckets"
  69. ],
  70. "Resource": "*"
  71. },
  72. {
  73. "Effect": "Allow",
  74. "Action": [
  75. "s3:GetObject"
  76. ],
  77. "Resource": "*",
  78. "Condition": {
  79. "StringEqualsIgnoreCase": {
  80. "s3:ExistingObjectTag/SageMaker": "true"
  81. }
  82. }
  83. },
  84. {
  85. "Action": "iam:CreateServiceLinkedRole",
  86. "Effect": "Allow",
  87. "Resource": "arn:aws:iam::*:role/aws-service-role/sagemaker.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_SageMakerEndpoint",
  88. "Condition": {
  89. "StringLike": {
  90. "iam:AWSServiceName": "sagemaker.application-autoscaling.amazonaws.com"
  91. }
  92. }
  93. },
  94. {
  95. "Effect": "Allow",
  96. "Action": [
  97. "iam:PassRole"
  98. ],
  99. "Resource": "*",
  100. "Condition": {
  101. "StringEquals": {
  102. "iam:PassedToService": "sagemaker.amazonaws.com"
  103. }
  104. }
  105. }
  106. ]
  107. }
Add Comment
Please, Sign In to add comment