From 879ca848ce9057895e377db491698db40840961b Mon Sep 17 00:00:00 2001 From: Matthew <106278637+Matthew-Grayson@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:50:17 -0500 Subject: [PATCH] Cloudwatch to s3 lambda (#2319) * Fix SSMParameterName to match AWS hierarchical naming convention. --- backend/src/tasks/cloudwatchToS3.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/tasks/cloudwatchToS3.ts b/backend/src/tasks/cloudwatchToS3.ts index 414f30e03..397eed433 100644 --- a/backend/src/tasks/cloudwatchToS3.ts +++ b/backend/src/tasks/cloudwatchToS3.ts @@ -57,10 +57,8 @@ export const handler = async () => { } const logGroupName = logGroup.logGroupName!; console.log(`Processing log group: ${logGroupName}`); - const ssmParameterName = `last-export-to-s3/${logGroupName}`.replace( - '//', - '/' - ); + const ssmParameterName = + `/logs/${stage}/last-export-to-s3/${logGroupName}`.replace('//', '/'); let ssmValue = '0'; try {