Skip to content

Commit 7bf7868

Browse files
authored
fix: Merge pull request #35 from scribd/taylorsmcclure/fix-iam-policy-v2
bug: fix datadog IAM policy to prevent numerous CloudTrail errors for v2
2 parents f3553f3 + a354834 commit 7bf7868

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ resource "aws_iam_policy" "datadog-core" {
5959
"apigateway:GET",
6060
"autoscaling:Describe*",
6161
"budgets:ViewBudget",
62+
"cloudformation:DetectStack*",
6263
"cloudfront:GetDistributionConfig",
6364
"cloudfront:ListDistributions",
65+
"cloudtrail:LookupEvents",
6466
"cloudtrail:DescribeTrails",
6567
"cloudtrail:GetTrailStatus",
66-
"cloudtrail:LookupEvents",
67-
"cloudwatch:ListMetrics",
6868
"cloudwatch:Describe*",
6969
"cloudwatch:Get*",
7070
"cloudwatch:List*",
@@ -87,6 +87,7 @@ resource "aws_iam_policy" "datadog-core" {
8787
"es:ListTags",
8888
"es:ListDomainNames",
8989
"es:DescribeElasticsearchDomains",
90+
"fsx:DescribeFileSystems",
9091
"health:DescribeEvents",
9192
"health:DescribeEventDetails",
9293
"health:DescribeAffectedEntities",
@@ -103,6 +104,7 @@ resource "aws_iam_policy" "datadog-core" {
103104
"logs:PutSubscriptionFilter",
104105
"logs:DeleteSubscriptionFilter",
105106
"logs:DescribeSubscriptionFilters",
107+
"organizations:DescribeOrganization",
106108
"rds:Describe*",
107109
"rds:List*",
108110
"redshift:DescribeClusters",
@@ -117,8 +119,8 @@ resource "aws_iam_policy" "datadog-core" {
117119
"ses:Get*",
118120
"sns:List*",
119121
"sns:Publish",
120-
"sqs:ListQueues",
121122
"states:ListStateMachines",
123+
"sqs:ListQueues",
122124
"support:*",
123125
"tag:GetResources",
124126
"tag:GetTagKeys",

0 commit comments

Comments
 (0)