From b1d96ec746d4b2c8375354d7de323d7beef2f384 Mon Sep 17 00:00:00 2001 From: rakhimundhada15 <60738948+rakhimundhada15@users.noreply.github.com> Date: Fri, 14 Feb 2025 12:19:48 +0530 Subject: [PATCH] Added the retention period to 13 month for cloud watch log group (#386) Co-authored-by: Rakhi Mundhada --- cfn/paws-collector-shared.template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cfn/paws-collector-shared.template b/cfn/paws-collector-shared.template index 6322911b..61fd3040 100644 --- a/cfn/paws-collector-shared.template +++ b/cfn/paws-collector-shared.template @@ -434,6 +434,24 @@ "FunctionName" : { "Ref":"CollectLambdaFunction" } } }, + "CollectCloudWatchGroup": { + "Type": "AWS::Logs::LogGroup", + "DependsOn": [ + "CollectLambdaFunction" + ], + "Properties": { + "LogGroupName": { + "Fn::Join": [ + "", + [ + "/aws/lambda/", + { "Ref": "CollectLambdaFunction" } + ] + ] + }, + "RetentionInDays": 400 + } + }, "RegistrationResource": { "Type": "Custom::RegistrationResource", "DependsOn": [