Skip to main content

AWS Backup ExecModule

Overview​

AwsBackupModule reads job status from AWS Backup. Use it to review failed or partial jobs, capture evidence from a scheduled backup window, or check whether a specific job is still running. Each execution reads one page for the connected account and region or looks up one exact backup job.

AWS job status records what AWS Backup observed. A completed job alone does not establish that a recovery point can be restored or that an application meets its recovery objectives.

Usage​

  1. In the Integration Account Console, create an AWS Backup connection and confirm that it is verified and READY.
  2. Add AWS Backup to a Workflow Studio task and choose that account under General > Connection.
  3. Set region and select list_backup_jobs to review recent jobs or describe_backup_job when you already have the job ID.
  4. Check the lookup status first. On success, evaluate each item's state and any reported messageCategory.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringNolist_backup_jobsSelect a regional list or an exact job lookup.
regionstringYes—AWS Backup region in the commercial AWS or AWS GovCloud partition.
limitintegerNo25Maximum jobs per list page, from 1 to 1,000.
statestringNo—List filter. Use CREATED, PENDING, RUNNING, ABORTING, ABORTED, COMPLETED, FAILED, EXPIRED, or PARTIAL.
nextTokenstringNo—Opaque continuation token for a list, up to 6,144 characters.
backupJobIdstringFor describe—Exact AWS Backup job ID in UUID format.

Outputs​

OutputMeaning
status / operationLookup outcome and the selected operation, when recognized.
items / countJob summaries in provider order and the number returned. Describe returns one item.
hasMore / nextTokenWhether a list has another page, and its token when present.
requestIdAWS request reference, when available.
errorRedacted code, message, retryability, and AWS HTTP status when available.

Each item contains backupJobId and state. A missing or unrecognized state is UNKNOWN. Optional fields include resourceType, backupVaultName, creationDate, completionDate, and messageCategory. Timestamps are ISO 8601. The module omits AWS free-form status messages and the full provider response. When AWS supplies a category other than SUCCESS on a COMPLETED job, evaluate it before treating the job as cleanly completed.

IntegrationAccount Requirements​

Use an AWS Backup connection with account name AWS. Store the access key ID in the protected API key field and the secret access key in the protected password field. ValkyrAI resolves the selected connection and signs calls with AWS Signature Version 4.

Grant backup:ListBackupJobs for lists or backup:DescribeBackupJob for exact lookups. These IAM actions require Resource: "*" because AWS does not support resource-level grants for them. Limit the statement to the read actions the workflow uses. AWS Backup IAM actions

Configuration​

Select the AWS region that contains the jobs. The module uses the standard regional AWS Backup HTTPS endpoint. It accepts an access key pair from the verified connection. Session tokens, inline credentials, and custom endpoints are outside the connection contract.

Operations​

  • list_backup_jobs calls AWS ListBackupJobs and returns one page from the service's 30-day list window. An empty page is valid. A state filter narrows the list within the selected account and region.
  • describe_backup_job calls AWS DescribeBackupJob for the supplied job ID. Use this when a prior workflow step or an operator already has the ID.

Errors and Failure Modes​

  • VALIDATION_ERROR indicates invalid inputs. Provide the exact job ID for describe and use the state filter and token only with list.
  • INTEGRATION_ACCOUNT_ERROR indicates that the selected AWS connection is unavailable or unsuitable. Confirm verification, status, and the protected credential fields.
  • BACKUP_JOB_NOT_FOUND indicates that AWS could not locate the job. Check the ID, region, and account.
  • An AWS_BACKUP_HTTP_ error includes the AWS HTTP status. Use the request reference when available and error.retryable to schedule a bounded retry.
  • INVALID_PROVIDER_RESPONSE indicates that the response could not be safely interpreted. Escalate repeated occurrences with the region and time of the lookup.
  • A lookup can succeed while the backup itself reports FAILED or PARTIAL. Route job states and connector errors separately.

Example​

Check a known job before closing a backup review.

{
"operation": "describe_backup_job",
"region": "us-west-2",
"backupJobId": "01234567-89ab-4cde-8012-3456789abcde"
}

A successful lookup can return this job summary.

{
"status": "success",
"operation": "describe_backup_job",
"items": [
{
"backupJobId": "01234567-89ab-4cde-8012-3456789abcde",
"state": "COMPLETED",
"resourceType": "EBS",
"backupVaultName": "daily-protection",
"creationDate": "2026-09-10T02:00:00Z",
"completionDate": "2026-09-10T02:17:00Z",
"messageCategory": "SUCCESS"
}
],
"count": 1,
"hasMore": false
}

Record the job ID, state, and completion time in the review. Route a failed or partial job to an operator. If the review requires proof of recovery, use a separate restore validation process.

Notes​

  • When hasMore is true, pass nextToken unchanged to a new list call with the same connection, region, and state filter. Bound total pages per workflow run.
  • Space repeated polls and use backoff for throttling. See AWS Backup endpoints and quotas.
  • Reads are safe to repeat. Job states may change between polls or pages, so deduplicate notifications using the job ID and observed state.
  • The module reads backup job metadata. It leaves jobs, plans, vaults, recovery points, and backups untouched.