Skip to content

Commit 0ab25f3

Browse files
committed
feat(aws): AWSX-1566 Adding new variable in the cloudformation template
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent 5817141 commit 0ab25f3

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

aws/logs_monitoring/template.yaml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,20 @@ Parameters:
7575
Type: String
7676
Default: ""
7777
Description: Add custom tags to forwarded logs, comma-delimited string, no trailing comma, e.g., env:prod,stack:classic
78+
DdEnrichS3Tags:
79+
Type: String
80+
Default: true
81+
AllowedValues:
82+
- true
83+
- false
84+
Description: Instruct Datadog Backend to enrich a log coming from a S3 bucket with the tag attached to this bucket. Datadog AWS Resource Collection needs to be enabled.
85+
DdEnrichCloudwatchTags:
86+
Type: String
87+
Default: true
88+
AllowedValues:
89+
- true
90+
- false
91+
Description: Instruct Datadog Backend to enrich a log coming from a Cloudwatch logGroup with the tag attached to this logGroup. Datadog AWS Resource Collection needs to be enabled.
7892
DdFetchLambdaTags:
7993
Type: String
8094
Default: true
@@ -88,7 +102,7 @@ Parameters:
88102
AllowedValues:
89103
- true
90104
- false
91-
Description: Let the forwarder fetch Log Group tags using ListTagsLogGroup and apply them to logs, metrics and traces. If set to true, permission logs:ListTagsLogGroup will be automatically added to the Lambda execution IAM role. The tags are cached in memory and S3 so that they'll only be fetched when the function cold starts or when the TTL (1 hour) expires. The forwarder increments the aws.lambda.enhanced.list_tags_log_group_api_call metric for each API call made.
105+
Description: [DEPRECATED in favor of DdEnrichCloudwatchTags] Let the forwarder fetch Log Group tags using ListTagsLogGroup and apply them to logs, metrics and traces. If set to true, permission logs:ListTagsLogGroup will be automatically added to the Lambda execution IAM role. The tags are cached in memory and S3 so that they'll only be fetched when the function cold starts or when the TTL (1 hour) expires. The forwarder increments the aws.lambda.enhanced.list_tags_log_group_api_call metric for each API call made.
92106
DdFetchStepFunctionsTags:
93107
Type: String
94108
Default: true
@@ -98,11 +112,11 @@ Parameters:
98112
Description: Let the forwarder fetch Step Functions tags using GetResources API calls and apply them to logs, metrics and traces. If set to true, permission tag:GetResources will be automatically added to the Lambda execution IAM role. The tags are cached in memory and S3 so that they'll only be fetched when the function cold starts or when the TTL (1 hour) expires. The forwarder increments the aws.lambda.enhanced.get_resources_api_calls metric for each API call made.
99113
DdFetchS3Tags:
100114
Type: String
101-
Default: true
115+
Default: false
102116
AllowedValues:
103117
- true
104118
- false
105-
Description: Let the forwarder fetch S3 buckets tags using GetResources API calls and apply them to S3 based logs. If set to true, permission tag:GetResources will be automatically added to the Lambda execution IAM role. The tags are cached in memory and S3 so that they'll only be fetched when the function cold starts or when the TTL (1 hour) expires. The forwarder increments the aws.lambda.enhanced.get_resources_api_calls metric for each API call made.
119+
Description: [DEPRECATED in favor of DdEnrichS3Tags] Let the forwarder fetch S3 buckets tags using GetResources API calls and apply them to S3 based logs. If set to true, permission tag:GetResources will be automatically added to the Lambda execution IAM role. The tags are cached in memory and S3 so that they'll only be fetched when the function cold starts or when the TTL (1 hour) expires. The forwarder increments the aws.lambda.enhanced.get_resources_api_calls metric for each API call made.
106120
DdNoSsl:
107121
Type: String
108122
Default: false
@@ -448,11 +462,13 @@ Resources:
448462
- !Ref DdTags
449463
- !Ref AWS::NoValue
450464
DD_TAGS_CACHE_TTL_SECONDS: !Ref TagsCacheTTLSeconds
465+
DD_ENRICH_S3_TAGS: !Ref DdEnrichS3Tags
466+
DD_ENRICH_CLOUDWATCH_TAGS: !Ref DdEnrichCloudwatchTags
467+
DD_FETCH_S3_TAGS: !Ref DdFetchS3Tags
451468
DD_FETCH_LAMBDA_TAGS: !If
452469
- SetDdFetchLambdaTags
453470
- !Ref DdFetchLambdaTags
454471
- !Ref AWS::NoValue
455-
DD_FETCH_S3_TAGS: !Ref DdFetchS3Tags
456472
DD_FETCH_LOG_GROUP_TAGS: !If
457473
- SetDdFetchLogGroupTags
458474
- !Ref DdFetchLogGroupTags
@@ -1018,6 +1034,8 @@ Metadata:
10181034
- Label:
10191035
default: Advanced (Optional)
10201036
Parameters:
1037+
- DdEnrichS3Tags
1038+
- DdEnrichCloudwwatchTags
10211039
- DdFetchLambdaTags
10221040
- DdFetchLogGroupTags
10231041
- DdFetchStepFunctionsTags

0 commit comments

Comments
 (0)