Skip to content

Module: ssm_maintenance_window_target

Associates resource groups (or explicit resource IDs) with a maintenance window.

Input Map Key Pattern

Root variable: ssm_maintenance_window_targets (map of objects).

Field Type Required Description
window_id string required Key of maintenance window
name string optional Override target name
resource_type string required Typically RESOURCE_GROUP or INSTANCE
targets list(object) required One or more target spec blocks { key, values }
owner_information string optional Freeform text
description string optional Description

Example

ssm_maintenance_window_targets = {
  windows_wss_servers = {
    window_id     = "monthly_patching"
    name          = "windows-wss-servers-target"
    resource_type = "RESOURCE_GROUP"
    targets = [{
      key    = "resource-groups:Name"
      values = ["epic-servers-group"]
    }]
  }
}