Sub topic 16
Monitoring jobs and auditing compliance
A backup plan that runs without anyone checking it is only a hope. This chapter covers how to see what AWS Backup did, how to get alerted when something fails, and how to prove to an auditor that your resources are protected.
Prerequisites
This chapter assumes you can do the following:
- Create and read vaults, plans, and recovery points with the AWS CLI.
- Read IAM and SNS resource policies.
- Write a basic EventBridge rule.
- Recognize what AWS Config does, because Audit Manager depends on it.
Three questions monitoring must answer
Each question maps to a different tool.
| Question | Tool |
|---|---|
| What happened to this one job? | `list-backup-jobs`, `describe-backup-job` |
| Tell me when something goes wrong. | Vault notifications (SNS), EventBridge, CloudWatch metrics |
| Are all my resources protected according to policy? | Backup Audit Manager frameworks and reports |
Job states
Every backup, copy, and restore runs as a job. A backup job moves through these states:
CREATED,PENDING,RUNNING: the job is queued or in progress.COMPLETED: a recovery point exists.PARTIAL: some of the resource's data was protected, but not all of it.FAILED: the job ended with an error.StatusMessageexplains why.ABORTING,ABORTED: someone stopped the job.EXPIRED: the job did not start or finish within its start or completion window.
The start window and completion window from your rule decide when a job becomes EXPIRED. If jobs expire often, widen the windows or reduce the load on the resource.
To find recent failures, filter by state and creation time:
aws backup list-backup-jobs \
--by-state FAILED \
--by-created-after 2026-11-25T00:00:00Z \
--query "BackupJobs[].[BackupJobId,ResourceArn,StatusMessage]" \
--output tableThen inspect one job in full:
aws backup describe-backup-job --backup-job-id <backup-job-id>The output includes State, StatusMessage, PercentDone, BackupSizeInBytes, and IamRoleArn. The most common failure messages point to a missing service role permission, an unusable KMS key, or a resource in a state that cannot be backed up. The related commands list-copy-jobs and list-restore-jobs work the same way for copies and restores.
Alerting with vault notifications
A backup vault can publish events to an SNS topic. SNS must first allow the AWS Backup service to publish to the topic. Attach this policy to the topic:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowBackupToPublish",
"Effect": "Allow",
"Principal": { "Service": "backup.amazonaws.com" },
"Action": "sns:Publish",
"Resource": "arn:aws:sns:us-east-1:123456789012:backup-alerts"
}
]
}Then subscribe the vault to the events you care about:
aws backup put-backup-vault-notifications \
--backup-vault-name app-vault \
--sns-topic-arn arn:aws:sns:us-east-1:123456789012:backup-alerts \
--backup-vault-events BACKUP_JOB_FAILED BACKUP_JOB_EXPIRED COPY_JOB_FAILED RESTORE_JOB_COMPLETEDNotifications are configured per vault. A plan that writes to several vaults needs the setting on each vault. If the topic is encrypted with a KMS key, the key policy must also let backup.amazonaws.com use the key, or messages are silently lost.
Reacting with EventBridge
AWS Backup also sends events to EventBridge with the source aws.backup. EventBridge filters on fields in the event, which makes it better than SNS for routing. For example, you can send failures only for production resources to a ticketing Lambda function.
This pattern matches failed, expired, or aborted backup jobs:
{
"source": ["aws.backup"],
"detail-type": ["Backup Job State Change"],
"detail": {
"state": ["FAILED", "EXPIRED", "ABORTED"]
}
}Create the rule and give it a target:
aws events put-rule \
--name backup-job-problems \
--event-pattern file://pattern.json
aws events put-targets \
--rule backup-job-problems \
--targets "Id"="1","Arn"="arn:aws:sns:us-east-1:123456789012:backup-alerts"If the target is an SNS topic, its policy must allow events.amazonaws.com to publish. Copy jobs and restore jobs emit their own detail types, so add them to the rule if you want alerts for those.
Metrics and alarms
AWS Backup publishes metrics to CloudWatch in the AWS/Backup namespace. They include counts of jobs created, running, completed, failed, and expired. An alarm on the failed-job count catches problems across every vault in the Region, so you do not need an event rule per vault.
A common mistake is to alarm only on failures. A plan whose resource assignment matches nothing produces no jobs at all, so there is nothing to fail and no alert. To catch that case, use a compliance control or an alarm that fires when the completed-job count drops to zero.
The diagram shows how the signals flow.
Auditing with Backup Audit Manager
Alerts tell you about individual jobs. Audit Manager tells you whether your setup meets policy. It has two parts:
- A framework is a set of controls that AWS Backup evaluates. Each control checks one rule, such as "every EBS volume is in a backup plan."
- A report plan produces CSV or JSON files in an S3 bucket. The reports cover jobs and compliance.
Frameworks evaluate resources through AWS Config, so you must turn on resource recording in AWS Config first. AWS Backup can enable it for you in the console. If recording is off, controls show as not evaluated.
Common controls include:
BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLANBACKUP_PLAN_MIN_FREQUENCY_AND_MIN_RETENTION_CHECKBACKUP_RECOVERY_POINT_ENCRYPTEDBACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLEDBACKUP_LAST_RECOVERY_POINT_CREATEDBACKUP_RESOURCES_PROTECTED_BY_BACKUP_VAULT_LOCK
This file defines two controls. The first requires EBS volumes to be in a plan. The second requires a plan that backs up at least every 24 hours and keeps recovery points for at least 35 days.
[
{
"ControlName": "BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLAN",
"ControlScope": {
"ComplianceResourceTypes": ["EBS"]
}
},
{
"ControlName": "BACKUP_PLAN_MIN_FREQUENCY_AND_MIN_RETENTION_CHECK",
"ControlInputParameters": [
{ "ParameterName": "requiredFrequencyUnit", "ParameterValue": "hours" },
{ "ParameterName": "requiredFrequencyValue", "ParameterValue": "24" },
{ "ParameterName": "requiredRetentionDays", "ParameterValue": "35" }
]
}
]Create the framework from the file:
aws backup create-framework \
--framework-name daily-35-day-policy \
--framework-controls file://controls.jsonNow create a report plan that writes daily job reports to S3:
aws backup create-report-plan \
--report-plan-name backup-job-report \
--report-delivery-channel S3BucketName=my-backup-reports,Formats=CSV,JSON \
--report-setting ReportTemplate=BACKUP_JOB_REPORTThe available templates are BACKUP_JOB_REPORT, COPY_JOB_REPORT, RESTORE_JOB_REPORT, RESOURCE_COMPLIANCE_REPORT, and CONTROL_COMPLIANCE_REPORT. The bucket policy must let AWS Backup write to the bucket. Reports are generated on a schedule, and you can request one immediately with start-report-job.
Common errors
- No emails arrive. The SNS topic policy lacks
backup.amazonaws.com, or the subscription was never confirmed. - Events only for one vault. Notifications are per vault, so each vault needs its own setting.
- Controls show "insufficient data." AWS Config recording is off, or has not yet evaluated the resource types in scope.
- Reports are empty. The report plan covers only its own account and Region unless you set accounts and Regions in the report setting. In an Organization, set them explicitly.
- Alarm never fires. A resource assignment that matches nothing creates no jobs. Pair failure alarms with a compliance control.
Exercises
Exercise
A nightly backup job for an RDS database fails. You have an SNS topic subscribed to app-vault for BACKUPJOBCOMPLETED only. Why did you not get an email, and how do you fix it?
Show answer
The vault notification list did not include a failure event. Run put-backup-vault-notifications again with BACKUPJOBFAILED (and BACKUPJOBEXPIRED) in --backup-vault-events. Also confirm the SNS topic policy allows backup.amazonaws.com to publish.
Exercise
Your auditor asks for evidence that every EBS volume is covered by a plan that backs up at least daily and keeps backups for 35 days. Which Audit Manager features do you use, and what must be enabled first?
Show answer
Create a framework with the controls BACKUPRESOURCESPROTECTEDBYBACKUPPLAN (scoped to EBS) and BACKUPPLANMINFREQUENCYANDMINRETENTIONCHECK (24 hours, 35 days). Create a report plan with the CONTROLCOMPLIANCEREPORT or RESOURCECOMPLIANCEREPORT template to deliver evidence to S3. AWS Config resource recording must be enabled first.