Jordan S
10/01/2026, 12:43 AMpolicies:
- name: monitor-cloudwatch-log-group
resource: aws.log-group
description: Set log retention on log cloud watch groups if missing
filters:
- type: value
key: retentionInDays
value: null
actions:
- type: retention
days: "{c7n_cloudwatch_logroup_retention}" # HERE is a string should be a int
I can't find much in the docs, or any examplesAJ Kerrigan
10/01/2026, 11:11 PMvars:
c7n_cloudwatch_logroup_retention: 60
rather than
vars:
c7n_cloudwatch_logroup_retention: "60"AJ Kerrigan
10/01/2026, 11:11 PMJordan S
10/02/2026, 1:49 AM