AWS Systems Manager Maintenance Window

This page shows how to write Terraform and CloudFormation for Systems Manager Maintenance Window and write them securely.

aws_ssm_maintenance_window (Terraform)

The Maintenance Window in Systems Manager can be configured in Terraform with the resource name aws_ssm_maintenance_window. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

github-iconNdomi/terraform
resource "aws_ssm_maintenance_window" "maintance_Window" {
  cutoff   = 1
  duration = 4
  name     = "maintenance-window"
  schedule = "cron(0 0 ? * SUN *)"

Parameters

Explanation in Terraform Registry

Provides an SSM Maintenance Window resource

AWS::SSM::MaintenanceWindow (CloudFormation)

The MaintenanceWindow in SSM can be configured in CloudFormation with the resource name AWS::SSM::MaintenanceWindow. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

The AWS::SSM::MaintenanceWindow resource represents general information about a maintenance window for AWS Systems Manager. Maintenance Windows let you define a schedule for when to perform potentially disruptive actions on your instances, such as patching an operating system (OS), updating drivers, or installing software. Each maintenance window has a schedule, a duration, a set of registered targets, and a set of registered tasks. For more information, see Systems Manager Maintenance Windows in the AWS Systems Manager User Guide and CreateMaintenanceWindow in the AWS Systems Manager API Reference.

Frequently asked questions

What is AWS Systems Manager Maintenance Window?

AWS Systems Manager Maintenance Window is a resource for Systems Manager of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Systems Manager Maintenance Window?

For Terraform, the Ndomi/terraform source code example is useful. See the Terraform Example section for further details.