Skip to content

Commit 4f74dc9

Browse files
committed
Updated RDS SCP to fix Aurora
1 parent e4fc979 commit 4f74dc9

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

rds/SCP/rds_encrypted.json

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
{
22
"Version": "2012-10-17",
33
"Statement": [
4-
{
5-
"Sid": "RDS",
6-
"Effect": "Deny",
7-
"Action": [
8-
"rds:CreateDBInstance"
9-
],
10-
"Resource": [
11-
"*"
12-
],
13-
"Condition": {
14-
"Bool": {
15-
"rds:StorageEncrypted": "false"
16-
}
17-
}
18-
},
19-
{
20-
"Sid": "StatementForAurora",
21-
"Effect": "Deny",
22-
"Action": [
23-
"rds:CreateDBCluster"
24-
],
25-
"Resource": [
26-
"*"
27-
],
28-
"Condition": {
29-
"Bool": {
30-
"rds:StorageEncrypted": "false"
31-
}
32-
}
4+
{
5+
"Sid": "StatementForNonAuroraRDS",
6+
"Effect": "Deny",
7+
"Action": [
8+
"rds:CreateDBInstance"
9+
],
10+
"Resource": [
11+
"*"
12+
],
13+
"Condition": {
14+
"ForAnyValue:StringNotLike": {
15+
"rds:DatabaseEngine": "aurora*"
16+
},
17+
"Bool": {
18+
"rds:StorageEncrypted": "false"
19+
}
3320
}
21+
},
22+
{
23+
"Sid": "StatementForAurora",
24+
"Effect": "Deny",
25+
"Action": [
26+
"rds:CreateDBCluster"
27+
],
28+
"Resource": [
29+
"*"
30+
],
31+
"Condition": {
32+
"Bool": {
33+
"rds:StorageEncrypted": "false"
34+
}
35+
}
36+
}
3437
]
35-
}
38+
}

0 commit comments

Comments
 (0)