Skip to content

Commit 899b533

Browse files
Record policy document in version control
- Record the data-replication specific policy document in version control - The role which uses this policy also uses the github_actions_policy.json document used by the standard deploy pipeline
1 parent 25cc424 commit 899b533

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Deny",
6+
"Action": ["*"],
7+
"Resource": "*",
8+
"Condition": {
9+
"ArnEquals": {
10+
"ec2:Vpc": [
11+
"arn:aws:ec2:eu-west-1:393416225559:vpc/vpc-029e1475034ab2fed",
12+
"arn:aws:ec2:eu-west-1:393416225559:vpc/vpc-087d03fc1f439f7fd",
13+
"arn:aws:ec2:eu-west-1:393416225559:vpc/vpc-0016fa51fbdfbf86e",
14+
"arn:aws:ec2:eu-west-1:393416225559:vpc/vpc-038fc6883f3d93661",
15+
"arn:aws:ec2:eu-west-1:820242920762:vpc/vpc-0abccf7c5d1538d12"
16+
]
17+
}
18+
}
19+
},
20+
{
21+
"Effect": "Deny",
22+
"Action": ["*"],
23+
"Resource": "*",
24+
"Condition": {
25+
"StringEquals": {
26+
"aws:ResourceTag/Environment": [
27+
"training",
28+
"qa",
29+
"test",
30+
"preview",
31+
"sandbox-alpha",
32+
"sandbox-beta",
33+
"production"
34+
]
35+
}
36+
}
37+
},
38+
{
39+
"Effect": "Allow",
40+
"Action": [
41+
"ec2:DescribeVpcEndpoints",
42+
"ec2:CreateVpcEndpoint",
43+
"ec2:ModifyVpcEndpoint",
44+
"ec2:DeleteVpcEndpoints",
45+
"rds:RestoreDBClusterFromSnapshot"
46+
],
47+
"Resource": "*"
48+
}
49+
]
50+
}

0 commit comments

Comments
 (0)