2017-12-15 13:15:01 +00:00
|
|
|
{
|
|
|
|
"Version": "2012-10-17",
|
|
|
|
"Statement": [
|
|
|
|
{
|
|
|
|
"Sid": "UnspecifiedCodeRepositories",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"ecr:DescribeRepositories",
|
|
|
|
"ecr:CreateRepository"
|
|
|
|
],
|
|
|
|
"Resource": "*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Sid": "SpecifiedCodeRepositories",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"ecr:GetRepositoryPolicy",
|
|
|
|
"ecr:SetRepositoryPolicy",
|
|
|
|
"ecr:DeleteRepository",
|
|
|
|
"ecr:DeleteRepositoryPolicy",
|
|
|
|
"ecr:DeleteRepositoryPolicy"
|
|
|
|
],
|
|
|
|
"Resource": [
|
|
|
|
"arn:aws:ecr:{{aws_region}}:{{aws_account}}:repository/ansible-*"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"application-autoscaling:Describe*",
|
|
|
|
"application-autoscaling:PutScalingPolicy",
|
|
|
|
"application-autoscaling:RegisterScalableTarget",
|
|
|
|
"cloudwatch:DescribeAlarms",
|
|
|
|
"cloudwatch:PutMetricAlarm",
|
|
|
|
"ecs:CreateCluster",
|
|
|
|
"ecs:CreateService",
|
2018-04-25 19:41:04 +00:00
|
|
|
"ecs:DeleteCluster",
|
|
|
|
"ecs:DeleteService",
|
|
|
|
"ecs:DeregisterTaskDefinition",
|
|
|
|
"ecs:Describe*",
|
|
|
|
"ecs:List*",
|
|
|
|
"ecs:RegisterTaskDefinition",
|
|
|
|
"ecs:RunTask",
|
2017-12-15 13:15:01 +00:00
|
|
|
"ecs:UpdateService",
|
|
|
|
"elasticloadbalancing:Describe*",
|
|
|
|
"iam:AttachRolePolicy",
|
|
|
|
"iam:CreateRole",
|
|
|
|
"iam:GetPolicy",
|
|
|
|
"iam:GetPolicyVersion",
|
|
|
|
"iam:GetRole",
|
|
|
|
"iam:ListAttachedRolePolicies",
|
|
|
|
"iam:ListGroups",
|
2018-04-25 19:41:04 +00:00
|
|
|
"iam:ListRoles",
|
2017-12-15 13:15:01 +00:00
|
|
|
"iam:ListUsers"
|
|
|
|
],
|
|
|
|
"Resource": [
|
|
|
|
"*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|