Skip to content

Commit 440d86e

Browse files
committed
feat: 6764: add metrics collection and update iam role
1 parent a70a53b commit 440d86e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resource "datadog_integration_aws" "core" {
1111
excluded_regions = var.excluded_regions
1212
filter_tags = var.filter_tags
1313
resource_collection_enabled = var.resource_collection_enabled
14+
metrics_collection_enabled = var.metrics_collection_enabled
1415
cspm_resource_collection_enabled = var.cspm_resource_collection_enabled
1516
}
1617

@@ -118,6 +119,7 @@ resource "aws_iam_policy" "datadog-core" {
118119
"logs:DeleteSubscriptionFilter",
119120
"logs:DescribeSubscriptionFilters",
120121
"organizations:DescribeOrganization",
122+
"organizations:ListRoots",
121123
"rds:Describe*",
122124
"rds:List*",
123125
"redshift:DescribeClusters",
@@ -129,6 +131,7 @@ resource "aws_iam_policy" "datadog-core" {
129131
"s3:GetBucketTagging",
130132
"s3:ListAllMyBuckets",
131133
"s3:PutBucketNotification",
134+
"backup:ListBackupPlans",
132135
"ses:Get*",
133136
"sns:List*",
134137
"sns:Publish",

vars.tf

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ variable "cspm_resource_collection_enabled" {
5151
description = "Whether Datadog collects cloud security posture management resources from your AWS account"
5252
type = string
5353
}
54+
variable "metrics_collection_enabled" {
55+
description = "Whether Datadog collects metrics for this AWS account."
56+
type = string
57+
}
5458
variable "resource_collection_enabled" {
5559
description = "Whether Datadog collects a standard set of resources from your AWS account."
5660
type = string

0 commit comments

Comments
 (0)