Skip to main content

workflow_executions

Creates, updates, deletes, gets or lists a workflow_executions resource.

Overview

Nameworkflow_executions
TypeResource
Idaws.imagebuilder.workflow_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
end_timestringThe timestamp when the specified runtime instance of the workflow finished.
image_build_version_arnstringThe Amazon Resource Name (ARN) of the image resource build version that the specified runtime instance of the workflow created. (pattern: <code>^arn:aws[^:]*:imagebuilder:[^:]+:(?:[0-9]{12}|aws(?:-[a-z-]+)?):image/[a-z0-9-_]+/[0-9]+.[0-9]+.[0-9]+/[0-9]+$</code>)
messagestringThe output message from the specified runtime instance of the workflow, if applicable.
parallel_groupstringTest workflows are defined within named runtime groups. The parallel group is a named group that contains one or more test workflows. (pattern: <code>^[A-Za-z0-9][A-Za-z0-9-_+#]{0,99}$</code>)
request_idstringThe request ID that uniquely identifies this request.
start_timestringThe timestamp when the specified runtime instance of the workflow started.
statusstringThe current runtime status for the specified runtime instance of the workflow. (PENDING, SKIPPED, RUNNING, COMPLETED, FAILED, ROLLBACK_IN_PROGRESS, ROLLBACK_COMPLETED, CANCELLED)
total_step_countintegerThe total number of steps in the specified runtime instance of the workflow that ran. This number should equal the sum of the step counts for steps that succeeded, were skipped, and failed.
total_steps_failedintegerA runtime count for the number of steps that failed in the specified runtime instance of the workflow.
total_steps_skippedintegerA runtime count for the number of steps that were skipped in the specified runtime instance of the workflow.
total_steps_succeededintegerA runtime count for the number of steps that ran successfully in the specified runtime instance of the workflow.
type_stringThe type of workflow that Image Builder ran for the specified runtime instance of the workflow. (BUILD, TEST, DISTRIBUTION)
workflow_build_version_arnstringThe Amazon Resource Name (ARN) of the build version for the Image Builder workflow resource that defines the specified runtime instance of the workflow. (pattern: <code>^arn:aws(?:-[a-z]+)*:imagebuilder:[a-z]{2,}(?:-[a-z]+)+-[0-9]+:(?:[0-9]{12}|aws(?:-[a-z-]+)?):workflow/(build|test|distribution)/[a-z0-9-_]+/[0-9]+.[0-9]+.[0-9]+/[0-9]+$</code>)
workflow_execution_idstringThe unique identifier that Image Builder assigned to keep track of runtime details when it ran the workflow. (pattern: <code>^wf-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_executionselectworkflowExecutionId, regionGet the runtime information that was logged for a specific runtime instance of the workflow.
list_workflow_executionsselectregionReturns a list of workflow runtime instance metadata objects for a specific image build version.

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)
workflowExecutionIdstringUse the unique identifier for a runtime instance of the workflow to get runtime details.

SELECT examples

Get the runtime information that was logged for a specific runtime instance of the workflow.

SELECT
end_time,
image_build_version_arn,
message,
parallel_group,
request_id,
start_time,
status,
total_step_count,
total_steps_failed,
total_steps_skipped,
total_steps_succeeded,
type_,
workflow_build_version_arn,
workflow_execution_id
FROM aws.imagebuilder.workflow_executions
WHERE workflowExecutionId = '{{ workflowExecutionId }}' -- required
AND region = '{{ region }}' -- required
;