Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idaws.migrationhuborchestrator.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the migration workflow. (pattern: <code>[a-zA-Z0-9-]+</code>)
namestringThe name of the migration workflow.
ads_application_configuration_idstringThe configuration ID of the application configured in Application Discovery Service.
ads_application_namestringThe name of the application configured in Application Discovery Service.
arnstringThe Amazon Resource Name (ARN) of the migration workflow.
completed_stepsintegerGet a list of completed steps in the migration workflow.
creation_timestring (date-time)The time at which the migration workflow was created.
descriptionstringThe description of the migration workflow.
end_timestring (date-time)The time at which the migration workflow ended.
last_modified_timestring (date-time)The time at which the migration workflow was last modified.
last_start_timestring (date-time)The time at which the migration workflow was last started.
last_stop_timestring (date-time)The time at which the migration workflow was last stopped.
statusstringThe status of the migration workflow. (CREATING, NOT_STARTED, CREATION_FAILED, STARTING, IN_PROGRESS, WORKFLOW_FAILED, PAUSED, PAUSING, PAUSING_FAILED, USER_ATTENTION_REQUIRED, DELETING, DELETION_FAILED, DELETED, COMPLETED)
status_messagestringThe status message of the migration workflow.
tagsobjectThe tags added to the migration workflow.
template_idstringThe ID of the template.
toolsarrayList of AWS services utilized in a migration workflow.
total_stepsintegerThe total number of steps in the migration workflow.
workflow_bucketstringThe Amazon S3 bucket where the migration logs are stored.
workflow_inputsobjectThe inputs required for creating the migration workflow.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflowselectid, regionGet migration workflow.
list_workflowsselectregionmaxResults, nextToken, templateId, adsApplicationConfigurationName, status, nameList the migration workflows.
create_workflowinsertregion, name, templateId, inputParametersCreate a workflow to orchestrate your migrations.
update_workflowupdateid, regionUpdate a migration workflow.
delete_workflowdeleteid, regionDelete a migration workflow. You must pause a running workflow in Migration Hub Orchestrator console to delete it.
retry_workflow_stepexecworkflowId, stepGroupId, id, regionRetry a failed step in a migration workflow.

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
idstringThe ID of the step.
regionstringAWS region (default: us-east-1)
stepGroupIdstringThe ID of the step group.
workflowIdstringThe ID of the migration workflow.
adsApplicationConfigurationNamestringThe name of the application configured in Application Discovery Service.
maxResultsintegerThe maximum number of results that can be returned.
namestringThe name of the migration workflow.
nextTokenstringThe pagination token.
statusstringThe status of the migration workflow.
templateIdstringThe ID of the template.

SELECT examples

Get migration workflow.

SELECT
id,
name,
ads_application_configuration_id,
ads_application_name,
arn,
completed_steps,
creation_time,
description,
end_time,
last_modified_time,
last_start_time,
last_stop_time,
status,
status_message,
tags,
template_id,
tools,
total_steps,
workflow_bucket,
workflow_inputs
FROM aws.migrationhuborchestrator.workflows
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a workflow to orchestrate your migrations.

INSERT INTO aws.migrationhuborchestrator.workflows (
name,
description,
templateId,
applicationConfigurationId,
inputParameters,
stepTargets,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ templateId }}' /* required */,
'{{ applicationConfigurationId }}',
'{{ inputParameters }}' /* required */,
'{{ stepTargets }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
ads_application_configuration_id,
arn,
creation_time,
description,
status,
step_targets,
tags,
template_id,
workflow_inputs
;

UPDATE examples

Update a migration workflow.

UPDATE aws.migrationhuborchestrator.workflows
SET
name = '{{ name }}',
description = '{{ description }}',
inputParameters = '{{ inputParameters }}',
stepTargets = '{{ stepTargets }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
ads_application_configuration_id,
arn,
creation_time,
description,
last_modified_time,
status,
step_targets,
tags,
template_id,
workflow_inputs;

DELETE examples

Delete a migration workflow. You must pause a running workflow in Migration Hub Orchestrator console to delete it.

DELETE FROM aws.migrationhuborchestrator.workflows
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Retry a failed step in a migration workflow.

EXEC aws.migrationhuborchestrator.workflows.retry_workflow_step
@workflowId='{{ workflowId }}' --required,
@stepGroupId='{{ stepGroupId }}' --required,
@id='{{ id }}' --required,
@region='{{ region }}' --required
;