modules/snapshot-policy/locals.tf (4 lines of code) (raw):

locals { monthly_schedule_days_of_month = var.monthly_schedule != null ? jsondecode(jsonencode(join(",", var.monthly_schedule.days_of_month))) : null weekly_schedule_day = var.weekly_schedule != null ? jsondecode(jsonencode(join(",", var.weekly_schedule.day))) : null }