File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff 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",
Original file line number Diff line number Diff 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+ }
5458variable "resource_collection_enabled" {
5559 description = " Whether Datadog collects a standard set of resources from your AWS account."
5660 type = string
You can’t perform that action at this time.
0 commit comments