Resource: aws_ssm_maintenance_window

Provides an SSM Maintenance Window resource

Example Usage

resource "aws_ssm_maintenance_window" "production" {
  name     = "maintenance-window-application"
  schedule = "cron(0 16 ? * TUE *)"
  duration = 3
  cutoff   = 1
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import SSM Maintenance Windows using the maintenance window id. For example:

import {
  to = aws_ssm_maintenance_window.imported-window
  id = "mw-0123456789"
}

Using terraform import, import SSM Maintenance Windows using the maintenance window id. For example:

% terraform import aws_ssm_maintenance_window.imported-window mw-0123456789