Skip to main content

AWS DataSync ExecModule

Overview​

AwsDataSyncModule reads transfer execution status from AWS DataSync. Use it to check that a particular transfer succeeded before processing the destination data, find executions that need investigation, or collect the timing and counters AWS reports for a known execution.

The module reads one page of executions for a known task or inspects one exact execution. AWS DataSync runs and manages the transfers.

Usage​

  1. Create and verify an AWS DataSync connection in the Integration Account Console. Confirm the account is READY.
  2. Add AWS DataSync in Workflow Studio and select the saved connection under General > Connection.
  3. Choose list_task_executions and supply the task ARN to discover execution ARNs. Choose describe_task_execution to check an exact execution from an upstream step or an item in the list.
  4. Check the top-level status for the result of the API call. After a successful lookup, use data.status for the state of the transfer.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringYes—list_task_executions or describe_task_execution.
taskArnstringFor listing—Exact DataSync task ARN ending in task/task-….
taskExecutionArnstringFor lookup—Exact DataSync execution ARN ending in task/task-…/execution/exec-….
limitintegerNo25List page size, 1–100.
nextTokenstringNo—Opaque continuation token from the preceding page, up to 65,535 characters.

Outputs​

OutputMeaning
status / operationModule outcome (success or error) and the recognized operation.
items / countExecution summaries in provider order and their count on this page.
hasMore / nextTokenWhether another page is available and the token to request it.
dataNormalized details for the exact execution.
requestIdAWS request reference when available.
errorStable error code, redacted message, retryability, and HTTP status when available.

A list item or lookup result contains taskExecutionArn and the DataSync execution status. When AWS supplies it, taskMode identifies a BASIC or ENHANCED task.

A lookup can also return startTime as an ISO 8601 timestamp and totalDurationMilliseconds as the reported run duration. Optional counters include bytesCompressed, bytesTransferred, bytesWritten, estimatedBytesToTransfer, estimatedFilesToTransfer, filesTransferred, and filesVerified. Treat missing counters as unknown. Some counters depend on the task mode and execution state. AWS transfer performance counters

IntegrationAccount Requirements​

Use the AWS DataSync template with account name AWS. Enter the access key ID in the protected API key field and the secret access key in the protected password field. Verify the account before selecting it. ValkyrAI resolves the protected values from the saved connection at runtime to sign AWS requests.

Grant only the actions the workflow uses. datasync:DescribeTaskExecution supports an exact execution ARN or a task-scoped execution ARN pattern. AWS lists no resource type for datasync:ListTaskExecutions, so that action requires Resource: "*" even though each module request names one task. For a workflow that always receives the exact execution ARN, grant only the describe action. AWS DataSync IAM actions and resource types

Configuration​

The module uses the AWS region encoded in the supplied ARN. It connects over HTTPS to the standard regional DataSync endpoint for the commercial (aws) or GovCloud (aws-us-gov) partition. Use a connection authorized for that region and resource. Keep credentials in the connection and supply the ARN as a workflow input. This connection accepts an access key pair. Session tokens, inline credentials, and custom endpoints are outside its contract.

Operations​

  • list_task_executions reads one page of executions for a known task. An empty page is a valid result. Use a returned execution ARN to retrieve details. AWS ListTaskExecutions reference
  • describe_task_execution looks up one execution and returns its reported state and available metrics. Use the exact ARN to distinguish the execution for your workflow from other queued or completed executions of the same task. AWS DescribeTaskExecution reference

Errors and Failure Modes​

  • VALIDATION_ERROR indicates an input that the module could not use. Check the ARN type and the arguments for the selected operation.
  • INTEGRATION_ACCOUNT_ERROR indicates that the selected AWS connection cannot be used. Check the account status and its protected fields.
  • On an AWS rejection, verify the IAM permissions, ARN, and account. Use requestId when available to trace the request.
  • The SDK retries eligible transient reads up to twice. Use error.retryable to decide whether to schedule another attempt after the module returns. Apply backoff and cap the total wait.
  • A successful lookup can report a transfer in ERROR. Route it to transfer triage. When a lookup fails, keep the last known transfer state and handle the monitoring error separately.

Example​

A recurring DataSync task lands files for a reporting pipeline. An upstream step supplies the ARN of the execution associated with the reporting window. Look up that run before reading the destination.

{
"operation": "describe_task_execution",
"taskExecutionArn": "arn:aws:datasync:us-west-2:123456789012:task/task-0123456789abcdef0/execution/exec-0fedcba9876543210"
}

A successful lookup of a completed transfer can return this summary.

{
"status": "success",
"operation": "describe_task_execution",
"data": {
"taskExecutionArn": "arn:aws:datasync:us-west-2:123456789012:task/task-0123456789abcdef0/execution/exec-0fedcba9876543210",
"status": "SUCCESS",
"taskMode": "BASIC",
"startTime": "2026-11-08T03:00:00Z",
"totalDurationMilliseconds": 184000,
"bytesWritten": 10485760,
"filesTransferred": 40
}
}

On SUCCESS, advance to the ingestion step and apply any destination data checks the pipeline requires. While the transfer is in a state such as TRANSFERRING or VERIFYING, schedule another lookup. On ERROR, pass the execution ARN to the incident workflow.

Notes​

  • When hasMore is true, pass nextToken unchanged with the same connection, task ARN, and page size. Set an overall page limit and keep continuation tokens out of alert text.
  • Space polls across workflows that use the same AWS account. For service availability and limits, see the AWS DataSync endpoints and quotas.
  • Both operations are read-only and safe to repeat. Results can change while a transfer runs. Deduplicate downstream alerts by execution ARN and state.
  • Transfer submission, cancellation, task configuration, report retrieval, and reading or deleting destination files are outside the module's scope.