Skip to content

Module: ssm_maintenance_window

Defines SSM Maintenance Windows that provide a scheduling framework for patching and automation tasks.

Input Map Key Pattern

Root variable: ssm_maintenance_windows (map of objects).

Field Type Required Description
name string optional Override window name
schedule string required CRON / rate expression
schedule_timezone string optional Timezone (default UTC)
duration number required Hours window remains open
cutoff number required Hours before end to stop scheduling new tasks
allow_unassociated_targets bool optional Default false
schedule_offset number optional Offset for CRON day-of-week variants
tags map(string) optional Additional tags

Example

ssm_maintenance_windows = {
  monthly_patching = {
    name      = "3rd-sunday-patching"
    schedule  = "cron(40 0 ? * * *)"
    duration  = 3
    cutoff    = 1
    tags = {
      Environment = "IRE"
      Purpose     = "WindowsPatching"
    }
  }
}