Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon EC2 Systems Manager MaintenanceWindowTask Target

The Target property type specifies targets (either instances or tags). You specify instances by using Key=instanceids,Values=instanceid1,instanceid2. You specify tags by using Key=tag name,Values=tag value for an Amazon EC2 Systems Manager Maintenance Window task.

Target is a property of the AWS::SSM::MaintenanceWindowTask resource.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "Key" : String, "Values" : [ String, ... ] }

YAML

Copy
Key: String Values: - String

Properties

Key

User-defined criteria for sending commands that target instances that meet the criteria. Key can be tag:Amazon EC2 tagor InstanceIds. For more information about how to send commands that target instances by using Key,Value parameters, see Sending Commands to a Fleet in the Amazon EC2 Systems Manager User Guide.

Required: Yes

Type: String

Update requires: No interruption

Values

User-defined criteria that maps to Key. For example, if you specify tag:ServerRole, you can specify value:WebServer to execute a command on instances that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send commands that target instances using Key,Value parameters, see Sending Commands to a Fleet in the Amazon EC2 Systems Manager User Guide.

Required: No

Type: List of String

Update requires: No interruption

On this page: