Skip to content

Commit

Permalink
Cloudwatch to s3 lambda (#2319)
Browse files Browse the repository at this point in the history
* Fix SSMParameterName to match AWS hierarchical naming convention.
  • Loading branch information
Matthew-Grayson authored Oct 17, 2023
1 parent fc33567 commit 879ca84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/src/tasks/cloudwatchToS3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 879ca84

Please sign in to comment.