Bucket Notification Handler cloud watch set log retention to ONE DAY #14906
-
Hello All
The resultant cloud watch log is set to never expire /aws/lambda/My-BucketNotificationsHandler050a0587b7544547bf3-EjP08STqrsfy | Never expire Can some provide an example of how to set it to one day? Ive been all over the cdk trying to figure it out |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You should be able to configure this when you create the Lambda https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#logretention |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
You should be able to configure this when you create the Lambda https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#logretention