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
51 lines
1.7 KiB
JSON
51 lines
1.7 KiB
JSON
{
|
|
"Version": "2012-10-17",
|
|
"Statement": [
|
|
{
|
|
"Sid": "ManageRoute53ForTests",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"route53:CreateHostedZone",
|
|
"route53:DeleteHostedZone",
|
|
"route53:GetHostedZone",
|
|
"route53:ListHostedZones",
|
|
"route53:UpdateHostedZoneComment"
|
|
],
|
|
"Resource": "*"
|
|
},
|
|
{
|
|
"Sid": "AllowTransitGatewayManagement",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"ec2:CreateTransitGateway",
|
|
"ec2:DeleteTransitGateway",
|
|
"ec2:DescribeTransitGateways"
|
|
],
|
|
"Resource": "*"
|
|
},
|
|
{
|
|
"Sid": "AllowCloudfrontUsage",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"cloudfront:CreateDistribution",
|
|
"cloudfront:CreateDistributionWithTags",
|
|
"cloudfront:CreateCloudFrontOriginAccessIdentity",
|
|
"cloudfront:DeleteDistribution",
|
|
"cloudfront:GetDistribution",
|
|
"cloudfront:GetStreamingDistribution",
|
|
"cloudfront:GetDistributionConfig",
|
|
"cloudfront:GetStreamingDistributionConfig",
|
|
"cloudfront:GetInvalidation",
|
|
"cloudfront:ListDistributions",
|
|
"cloudfront:ListDistributionsByWebACLId",
|
|
"cloudfront:ListInvalidations",
|
|
"cloudfront:ListStreamingDistributions",
|
|
"cloudfront:ListTagsForResource",
|
|
"cloudfront:TagResource",
|
|
"cloudfront:UntagResource",
|
|
"cloudfront:UpdateDistribution"
|
|
],
|
|
"Resource": "*"
|
|
}
|
|
]
|
|
}
|