AWS CloudFormation
User Guide (Version )

AWS::Events::Rule RunCommandTarget

The RunCommandTarget property type specifies information about the Amazon EC2 instances that the Run Command is sent to. A RunCommandTarget block can include only one key, but the key can specify multiple values.

RunCommandTarget is a property of the RunCommandParameters property type.

Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values.

Syntax

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

JSON

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

YAML

Key: String Values: - String

Properties

Key

Can be either tag: tag-key or InstanceIds.

Required: Yes

Type: String

Minimum: 1

Maximum: 128

Pattern: ^[\p{L}\p{Z}\p{N}_.:/=+\-@]*$

Update requires: No interruption

Values

If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.

Required: Yes

Type: List of String

Maximum: 50

Update requires: No interruption

On this page: