Amazon CloudWatch Events Rule RunCommandParameters
The
RunCommandParameters property type specifies the parameters to use when an
Amazon CloudWatch Events rule invokes the AWS Systems Manager Run Command.
RunCommandParameters is a property of the Target property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "RunCommandTargets" : [ RunCommandTarget, ... ] }
YAML
RunCommandTargets: - RunCommandTarget
Properties
For more information, including constraints and valid values, see RunCommandParameters in the Amazon CloudWatch Events API Reference.
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
RunCommandTargetblock, which specifies a list of InstanceIds or a tag.Required: Yes
Type: List of RunCommandTarget
Update requires: No interruption
