From f3bff770124a8fd30d40b7c857a97b4c43107251 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Thu, 30 Nov 2023 11:48:42 +0100 Subject: [PATCH] chore(ci): Update log retention for layers --- layers/src/canary-stack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/src/canary-stack.ts b/layers/src/canary-stack.ts index 342d5edb26..2d7aab1cee 100644 --- a/layers/src/canary-stack.ts +++ b/layers/src/canary-stack.ts @@ -64,7 +64,7 @@ export class CanaryStack extends Stack { SSM_PARAMETER_LAYER_ARN: props.ssmParameterLayerArn, }, layers: layer, - logRetention: RetentionDays.ONE_DAY, + logRetention: RetentionDays.TEN_YEARS, tracing: Tracing.ACTIVE, }); @@ -79,7 +79,7 @@ export class CanaryStack extends Stack { // use custom resource to trigger the lambda function during the CFN deployment const provider = new Provider(this, 'CanaryCustomResourceProvider', { onEventHandler: canaryFunction, - logRetention: RetentionDays.ONE_DAY, + logRetention: RetentionDays.TEN_YEARS, }); // random suffix forces recreation of the custom resource otherwise the custom resource will be reused from prevous deployment