60fb9fc208
* Update testing policies to ensure all required permissions are present * Tidy up security policies to reduce duplicate permissions * Make roles static so that they can be present before CI is run, meaning that role creation permission is not required by the CI itself, only by someone setting up the roles prior to testing * Move contents to cloudfront policy to network policy to ensure policy count (maximum of 10) stays low * Maintain compute policy below 6144 bytes
77 lines
2.1 KiB
JSON
77 lines
2.1 KiB
JSON
{
|
|
"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",
|
|
"ecs:DeleteCluster",
|
|
"ecs:DeleteService",
|
|
"ecs:DeregisterTaskDefinition",
|
|
"ecs:Describe*",
|
|
"ecs:List*",
|
|
"ecs:PutAccountSetting",
|
|
"ecs:RegisterTaskDefinition",
|
|
"ecs:RunTask",
|
|
"ecs:StartTask",
|
|
"ecs:StopTask",
|
|
"ecs:UpdateService",
|
|
"elasticloadbalancing:Describe*",
|
|
"iam:GetInstanceProfile",
|
|
"iam:GetPolicy",
|
|
"iam:GetPolicyVersion",
|
|
"iam:GetRole",
|
|
"iam:ListAttachedRolePolicies",
|
|
"iam:ListGroups",
|
|
"iam:ListRoles",
|
|
"iam:ListUsers"
|
|
],
|
|
"Resource": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"eks:CreateCluster",
|
|
"eks:DeleteCluster",
|
|
"eks:DescribeCluster",
|
|
"eks:ListClusters"
|
|
],
|
|
"Resource": [
|
|
"*"
|
|
]
|
|
}
|
|
|
|
|
|
]
|
|
}
|