AWS::SSM::Association Target
Target
is a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in
Systems Manager. You can target all instances in an Amazon Web Services account by specifying the InstanceIds
key with a value of *
. To view a JSON and a YAML example that targets all instances, see "Create an association for all managed instances in an Amazon Web Services account" on the Examples page.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
Properties
Key
-
User-defined criteria for sending commands that target managed nodes that meet the criteria.
Required: Yes
Type: String
Minimum:
1
Maximum:
163
Pattern:
^[\p{L}\p{Z}\p{N}_.:/=\-@]*$|resource-groups:ResourceTypeFilters|resource-groups:Name
Update requires: No interruption
Values
-
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
Required: Yes
Type: List of String
Maximum:
50
Update requires: No interruption