Send SSM Command Actions
Matt Houser avatar
Written by Matt Houser
Updated over a week ago

Description

The Send SSM Command action can be used to send commands to many EC2 instances using SSM at a specific time of day.

For example, instances can be instructed to execute Powershell commands at 8am each day.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Instance Identification Method

Indicate the method in which the instances are to be identified. Valid options are:

  • Instance ID - Identify the instances by their unique instance ID value.

  • Instance Name - Identify the instances by their "Name" tag.

  • EC2 Tag - Identify the instances by comparing EC2 tag values.

  • All Instances - Select all EC2 instances.

Instance IDs

Indicate the list of instance IDs of your EC2 instances. Instance IDs usually looks like "i-84a3dc7b". All instances must reside in the region specified. Required only if Instance Identification Method is set to "Instance ID".

Multiple instances can be added by clicking "Add many instances". In the dialog that appears, enter a space-, comma-, or line-seperated list of instance IDs.

Instance Name

Indicate the value of the "Name" tag of the EC2 instances. This instances must reside in the region specified. Required only if Instance Identification Method is set to "Instance Name".

EC2 Tag Name

Required if Instance Identification Method is "EC2 Tag". Indicates the name of the EC2 tag used to compare.

EC2 Tag Value

Required if Instance Identification Method is "EC2 Tag". Indicates the value of the EC2 tag used to compare.

Document Name

The name of the SSM document to execute. This can be an SSM public document or a custom document.

Command Parameters

List of the parameters to send to the SSM document.

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • ec2:DescribeInstances

  • ec2:DescribeInstanceStatus

  • ssm:DescribeInstanceInformation

  • ssm:ListCommandInvocations

  • ssm:ListCommands

  • ssm:SendCommand

Did this answer your question?