From 09b1741f9987b41bc6e9cf3669b7d0b04fa9d111 Mon Sep 17 00:00:00 2001 From: Anis Snoussi Date: Mon, 23 Jan 2023 18:36:17 +0100 Subject: [PATCH] pass forwarder tags from main template --- aws/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aws/main.yaml b/aws/main.yaml index 64ddb40d..8543b7be 100644 --- a/aws/main.yaml +++ b/aws/main.yaml @@ -65,6 +65,10 @@ Parameters: Description: >- The Datadog Forwarder Lambda function name. DO NOT change when updating an existing CloudFormation stack, otherwise the current forwarder function will be replaced and all the triggers will be lost. + DdForwarderTags: + Type: String + Default: "" + Description: Add custom tags to forwarded logs, comma-delimited string, no trailing comma, e.g., env:prod,stack:classic InstallDatadogPolicyMacro: Type: String Default: true @@ -140,6 +144,7 @@ Resources: DdApiKeySecretArn: !If [WillCreateDdApiKeySecretArn, "arn:aws:secretsmanager:DEFAULT", !Ref DdApiKeySecretArn] DdSite: !Ref DdSite FunctionName: !Ref DdForwarderName + DdTags: !Ref DdForwarderTags Outputs: IAMRoleName: Description: AWS IAM Role named to be used with the DataDog AWS Integration