AWS::Events::Rule RunCommandParameters - AWS CloudFormation

AWS::Events::Rule RunCommandParameters

The RunCommandParameters property type specifies the parameters to use when a rule invokes the AWS Systems Manager Run Command.

RunCommandParameters is a property of the Target property type.

This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.

Syntax

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

JSON

{ "RunCommandTargets" : [ RunCommandTarget, ... ] }

Properties

RunCommandTargets

The criteria (either InstanceIds or a tag) that specifies which EC2 instances the command is sent to.

Note

Currently, you can include only one RunCommandTarget block, which specifies a list of InstanceIds or a tag.

Required: Yes

Type: List of RunCommandTarget

Maximum: 5

Update requires: No interruption