Skip to content

Commit

Permalink
add log retention to 1 month
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 18, 2023
1 parent 4623c2a commit 2c7981b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ChimeSMAFunction(Stack scope, String id) {

// Assocaite log group so we can set a retention
new LogGroup(scope, id + "-LOG", LogGroupProps.builder()
.logGroupName("/aws/lambda/" + this.getFunctionName())
.logGroupName("/aws/lambda/" + this.getRef())
.retention(RetentionDays.ONE_MONTH)
.removalPolicy(RemovalPolicy.DESTROY)
.build()
Expand Down

0 comments on commit 2c7981b

Please sign in to comment.