Skip to main content

automation_executions

Creates, updates, deletes, gets or lists an automation_executions resource.

Overview

Nameautomation_executions
TypeResource
Idaws.ssm.automation_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alarm_configurationobjectThe details for the CloudWatch alarm you want to apply to an automation or command.
association_idstringThe ID of a State Manager association used in the Automation operation.
automation_execution_idstringThe execution ID.
automation_execution_statusstringThe execution status of the Automation. (Pending, InProgress, Waiting, Success, TimedOut, Cancelling, Cancelled, Failed, PendingApproval, Approved, Rejected, Scheduled, RunbookInProgress, PendingChangeCalendarOverride, ChangeCalendarOverrideApproved, ChangeCalendarOverrideRejected, CompletedWithSuccess, CompletedWithFailure, Exited)
automation_subtypestringThe subtype of the Automation operation. Currently, the only supported value is ChangeRequest. (ChangeRequest, AccessRequest)
change_request_namestringThe name of the Change Manager change request.
current_actionstringThe action of the step that is currently running.
current_step_namestringThe name of the step that is currently running.
document_namestringThe name of the Automation runbook used during the execution. (pattern: <code>^[a-zA-Z0-9_-.]{3,128}$</code>)
document_versionstringThe version of the document to use during execution. (pattern: <code>([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)</code>)
executed_bystringThe Amazon Resource Name (ARN) of the user who ran the automation.
execution_end_timestring (date-time)The time the execution finished.
execution_start_timestring (date-time)The time the execution started.
failure_messagestringA message describing why an execution has failed, if the status is set to Failed.
max_concurrencystringThe MaxConcurrency value specified by the user when the execution started. (pattern: <code>^([1-9][0-9]*|[1-9][0-9]%|[1-9]%|100%)$</code>)
max_errorsstringThe MaxErrors value specified by the user when the execution started. (pattern: <code>^([1-9][0-9]*|[0]|[1-9][0-9]%|[0-9]%|100%)$</code>)
modestringThe automation execution mode. (Auto, Interactive)
ops_item_idstringThe ID of an OpsItem that is created to represent a Change Manager change request.
outputsobjectThe list of execution outputs as defined in the Automation runbook.
parametersobjectThe key-value map of execution parameters, which were supplied when calling StartAutomationExecution.
parent_automation_execution_idstringThe AutomationExecutionId of the parent automation.
progress_countersobjectAn aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.
resolved_targetsobjectA list of resolved targets in the rate control execution.
runbooksarrayInformation about the Automation runbooks that are run as part of a runbook workflow. The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.
scheduled_timestring (date-time)The date and time the Automation operation is scheduled to start.
step_executionsarrayA list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.
step_executions_truncatedbooleanA boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.
targetstringThe target of the execution.
target_locationsarrayThe combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.
target_locations_urlstringA publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported (pattern: <code>^https://[-a-zA-Z0-9@:%._+~#=]{1,253}.s3(.[a-z\d-]{9,16})?.amazonaws.com/.{1,2000}</code>)
target_mapsarrayThe specified key-value mapping of document parameters to target resources.
target_parameter_namestringThe parameter name.
targetsarrayThe specified targets.
triggered_alarmsarrayThe CloudWatch alarm that was invoked by the automation.
variablesobjectVariables defined for the automation.
warning_messagestringA message that describes a non-critical issue that occurred during the automation execution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_automation_executionselectregionGet detailed information about a particular Automation execution.
describe_automation_executionsselectregionProvides details about all active and terminated Automation executions.
send_automation_signalexecregion, AutomationExecutionId, SignalTypeSends a signal to an Automation execution to change the current behavior or status of the execution.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Get detailed information about a particular Automation execution.

SELECT
alarm_configuration,
association_id,
automation_execution_id,
automation_execution_status,
automation_subtype,
change_request_name,
current_action,
current_step_name,
document_name,
document_version,
executed_by,
execution_end_time,
execution_start_time,
failure_message,
max_concurrency,
max_errors,
mode,
ops_item_id,
outputs,
parameters,
parent_automation_execution_id,
progress_counters,
resolved_targets,
runbooks,
scheduled_time,
step_executions,
step_executions_truncated,
target,
target_locations,
target_locations_url,
target_maps,
target_parameter_name,
targets,
triggered_alarms,
variables,
warning_message
FROM aws.ssm.automation_executions
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Sends a signal to an Automation execution to change the current behavior or status of the execution.

EXEC aws.ssm.automation_executions.send_automation_signal
@region='{{ region }}' --required
@@json=
'{
"AutomationExecutionId": "{{ AutomationExecutionId }}",
"SignalType": "{{ SignalType }}",
"Payload": "{{ Payload }}"
}'
;