This template creates an AWS Systems Manager maintenance window task that runs a Step Function. The task targets instances using the specified instance ID.

CloudFormation Template