Amazon EC2 Systems Manager MaintenanceWindowTask Target
The
Target
property type specifies targets (either instances or tags). You specify
instances by using
Key=instanceids,Values=
.
You specify tags by using instanceid1
,instanceid2
Key=
for an Amazon EC2 Systems Manager Maintenance Window task.
tag name
,Values=tag
value
Target
is a property of the AWS::SSM::MaintenanceWindowTask resource.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
Properties
Key
-
User-defined criteria for sending commands that target instances that meet the criteria.
Key
can betag:
orAmazon EC2 tag
InstanceIds
. For more information about how to send commands that target instances by usingKey,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 specifytag:ServerRole
, you can specifyvalue:WebServer
to execute a command on instances that include Amazon EC2 tags ofServerRole,WebServer
. For more information about how to send commands that target instances usingKey,Value
parameters, see Sending Commands to a Fleet in the Amazon EC2 Systems Manager User Guide.Required: No
Type: List of String values
Update requires: No interruption