Skip to content

Commit 857f875

Browse files
authored
Merge pull request #266 from vmercierfr/fix-cluster-permissions
Fix missing IAM permissions for DB clusters
2 parents a620ed7 + ab91f2c commit 857f875

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ If you are running on [AWS EKS](https://aws.amazon.com/eks/), we strongly recomm
291291
"arn:aws:rds:*:*:db:*"
292292
]
293293
},
294+
{
295+
"Sid": "AllowClusters",
296+
"Effect": "Allow",
297+
"Action": [
298+
"rds:DescribeDBClusters"
299+
],
300+
"Resource": [
301+
"arn:aws:rds:*:*:cluster:*"
302+
]
303+
},
294304
{
295305
"Sid": "AllowMaintenanceDescriptions",
296306
"Effect": "Allow",

configs/aws/policy.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
"arn:aws:rds:*:*:db:*"
2121
]
2222
},
23+
{
24+
"Sid": "AllowClusters",
25+
"Effect": "Allow",
26+
"Action": [
27+
"rds:DescribeDBClusters"
28+
],
29+
"Resource": [
30+
"arn:aws:rds:*:*:cluster:*"
31+
]
32+
},
2333
{
2434
"Sid": "AllowMaintenanceDescriptions",
2535
"Effect": "Allow",
@@ -69,4 +79,4 @@
6979
"Resource": "*"
7080
}
7181
]
72-
}
82+
}

configs/terraform/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ data "aws_iam_policy_document" "prometheus-rds-exporter" {
3636
]
3737
}
3838

39+
statement {
40+
sid = "AllowClusters"
41+
effect = "Allow"
42+
actions = [
43+
"rds:DescribeDBClusters",
44+
]
45+
resources = [
46+
"arn:aws:rds:*:*:cluster:*",
47+
]
48+
}
49+
3950
statement {
4051
sid = "AllowMaintenanceDescriptions"
4152
effect = "Allow"

0 commit comments

Comments
 (0)