Skip to main content

recovery_plan_execution_steps

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

Overview

Namerecovery_plan_execution_steps
TypeResource
Idaws.drs.recovery_plan_execution_steps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attemptintegerThe number of times this step has been attempted.
configurationobjectType-specific configuration for an execution step response. Mirrors RecoveryPlanStepConfiguration but uses execution-enriched server shapes.
created_atstringThe timestamp when the execution step was created. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)
error_detailobjectError details if the step failed.
recovery_plan_execution_step_arnstringStrict ARN type for Recovery Plan resources. Only allows safe characters in the resource portion — rejects HTML/script injection characters (<, >, ", ', etc.) per AWS API input validation standards. Resource portion allows: [A-Za-z0-9_/.-] which covers all DRS recovery plan resource identifiers (plan-xxx, st-xxx, exec-xxx, step-xxx). (pattern: <code>arn:aws(-[a-z0-9]+)*:drs:[a-z0-9-]+:[0-9]{12}:[a-zA-Z0-9_/.-]+</code>)
statusstringThe status of the execution step. (NOT_STARTED, EXECUTING, WAITING, COMPLETED, FAILED, TIMED_OUT, SKIPPED)
step_indexintegerThe order of a step within a Recovery Plan (1-based).
step_namestringThe name of a Recovery Plan Step. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9 _-]*</code>)
updated_atstringThe timestamp when the execution step was last updated. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recovery_plan_execution_stepselectregionGets the details of a step within a Recovery Plan execution.
list_recovery_plan_execution_stepsselectregionLists all steps within a Recovery Plan execution.
update_recovery_plan_execution_stepupdateregion, recoveryPlanExecutionStepArnUpdates an execution step. Supports two actions: (1) skip a step that is in NOT_STARTED or FAILED status; (2) update the wait duration of a WAIT type step that is in NOT_STARTED status.
retry_recovery_plan_execution_stepexecregion, recoveryPlanExecutionStepArnRetries a failed SERVER type execution step.

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

Gets the details of a step within a Recovery Plan execution.

SELECT
attempt,
configuration,
created_at,
error_detail,
recovery_plan_execution_step_arn,
status,
step_index,
step_name,
updated_at
FROM aws.drs.recovery_plan_execution_steps
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates an execution step. Supports two actions: (1) skip a step that is in NOT_STARTED or FAILED status; (2) update the wait duration of a WAIT type step that is in NOT_STARTED status.

UPDATE aws.drs.recovery_plan_execution_steps
SET
recoveryPlanExecutionStepArn = '{{ recoveryPlanExecutionStepArn }}',
status = '{{ status }}',
servers = '{{ servers }}',
waitDurationMinutes = {{ waitDurationMinutes }}
WHERE
region = '{{ region }}' --required
AND recoveryPlanExecutionStepArn = '{{ recoveryPlanExecutionStepArn }}' --required
RETURNING
recovery_plan_execution_step;

Lifecycle Methods

Retries a failed SERVER type execution step.

EXEC aws.drs.recovery_plan_execution_steps.retry_recovery_plan_execution_step
@region='{{ region }}' --required
@@json=
'{
"recoveryPlanExecutionStepArn": "{{ recoveryPlanExecutionStepArn }}"
}'
;