Skip to content

Commit 01b35db

Browse files
Taylor McClurejim80net
Taylor McClure
authored andcommitted
fix: fix datadog IAM policy to prevent numerous CloudTrail errors
1 parent 794d318 commit 01b35db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +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",
6768
"cloudwatch:Describe*",
6869
"cloudwatch:Get*",
6970
"cloudwatch:List*",
@@ -86,6 +87,7 @@ resource "aws_iam_policy" "datadog-core" {
8687
"es:ListTags",
8788
"es:ListDomainNames",
8889
"es:DescribeElasticsearchDomains",
90+
"fsx:DescribeFileSystems",
8991
"health:DescribeEvents",
9092
"health:DescribeEventDetails",
9193
"health:DescribeAffectedEntities",
@@ -102,6 +104,7 @@ resource "aws_iam_policy" "datadog-core" {
102104
"logs:PutSubscriptionFilter",
103105
"logs:DeleteSubscriptionFilter",
104106
"logs:DescribeSubscriptionFilters",
107+
"organizations:DescribeOrganization",
105108
"rds:Describe*",
106109
"rds:List*",
107110
"redshift:DescribeClusters",
@@ -116,8 +119,8 @@ resource "aws_iam_policy" "datadog-core" {
116119
"ses:Get*",
117120
"sns:List*",
118121
"sns:Publish",
119-
"sqs:ListQueues",
120122
"states:ListStateMachines",
123+
"sqs:ListQueues",
121124
"support:*",
122125
"tag:GetResources",
123126
"tag:GetTagKeys",

0 commit comments

Comments
 (0)