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
- In the Integration Account Console, create an AWS Backup connection and confirm that it is verified and
READY. - Add AWS Backup to a Workflow Studio task and choose that account under General > Connection.
- Set
regionand selectlist_backup_jobsto review recent jobs ordescribe_backup_jobwhen you already have the job ID. - Check the lookup
statusfirst. On success, evaluate each item'sstateand any reportedmessageCategory.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | No | list_backup_jobs | Select a regional list or an exact job lookup. |
region | string | Yes | — | AWS Backup region in the commercial AWS or AWS GovCloud partition. |
limit | integer | No | 25 | Maximum jobs per list page, from 1 to 1,000. |
state | string | No | — | List filter. Use CREATED, PENDING, RUNNING, ABORTING, ABORTED, COMPLETED, FAILED, EXPIRED, or PARTIAL. |
nextToken | string | No | — | Opaque continuation token for a list, up to 6,144 characters. |
backupJobId | string | For describe | — | Exact AWS Backup job ID in UUID format. |
Outputs
| Output | Meaning |
|---|---|
status / operation | Lookup outcome and the selected operation, when recognized. |
items / count | Job summaries in provider order and the number returned. Describe returns one item. |
hasMore / nextToken | Whether a list has another page, and its token when present. |
requestId | AWS request reference, when available. |
error | Redacted 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_jobscalls 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_jobcalls 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_ERRORindicates invalid inputs. Provide the exact job ID for describe and use the state filter and token only with list.INTEGRATION_ACCOUNT_ERRORindicates that the selected AWS connection is unavailable or unsuitable. Confirm verification, status, and the protected credential fields.BACKUP_JOB_NOT_FOUNDindicates 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 anderror.retryableto schedule a bounded retry. INVALID_PROVIDER_RESPONSEindicates 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
FAILEDorPARTIAL. 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
hasMoreis true, passnextTokenunchanged 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.