This template creates an AWS Systems Manager maintenance window task that runs an Automation runbook. The task targets instances using a maintenance window target ID. The runbook is specified as `AWS-PatchInstanceWithRollback` and the task uses the specified service role.

CloudFormation Template