Skip to content

Retention period for CW Logs in cloudtrial/periodic mode? #9685

Answered by ajkerrigan
danielhros asked this question in AWS
Discussion options

You must be logged in to vote

Not at deploy time, since Custodian doesn't create those log groups when you provision a policy. They're created under the hood when a function runs. Since policy Lambda function log groups have a predictable naming pattern (generally /aws/lambda/custodian-<policy name>) though, one approach is to run a policy with the retention action to configure retention for any log groups with Custodian's naming pattern.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danielhros
Comment options

Answer selected by danielhros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
AWS
Labels
None yet
2 participants