AWS Builder Center
Is Your Backup Actually Working? Mine Wasn't - My Friday Backup Audit Story

Is Your Backup Actually Working? Mine Wasn't - My Friday Backup Audit Story

I thought my backups were working — until I checked on a Friday afternoon and found my main DynamoDB table hadn't been backed up in 21 days. AWS Backup was failing silently. In this post, I share how I built a simple 15-minute Friday audit with EventBridge, Lambda, and Backup Audit Manager that now alerts me on Slack/Email if anything fails, plus the CloudFormation template you can deploy as temp to check your own account.

Sr Consultant, Cloud&Network Security
I thought I had backups covered. I turned on AWS Backup for my RDS and DynamoDB 3 months ago, saw the green  Completed  badge once, and never checked again.
Last Friday, I opened  AWS Backup -> Backup jobs  and my main  prod-users  DynamoDB table had 0 successful backups in last 21 days. The jobs were failing silently due to an IAM role issue.
If that table was deleted on Thursday, I would have lost everything.

Why This Happens

  1. AWS Backup doesn't alert you by default when jobs fail
  1. You have to go to CloudTrail and search for the failed event - filtering by time, resource, event name - it is very time consuming
  1. The full old state is often not even in the CloudTrail JSON

My Wishlist Fix: The 15-Minute Friday Audit

I built a simple automation that runs every Friday:
  • EventBridge Rule triggers every Friday at 10 AM
  • AWS Lambda checks for  FAILED  backup jobs in last 7 days
  • Amazon SNS sends alert to Email / Slack
  • AWS Backup Audit Manager generates daily CSV report to S3
Architecture

Temp CloudFormation Stack
You can deploy this as temp and delete it after testing. It includes everything.
Deploy:
  1. Upload  backup-audit-stack-v2.yaml  to CloudFormation
  1. Enter your  Email  parameter
  1. Confirm the SNS subscription from your email
Test Now:
aws lambda invoke --function-name friday-backup-audit-checker-v2 --payload '{"force_notify": true}' out.json
Lambda Code:
Python import boto3
def handler(event, context): backup = boto3.client('backup') # List failed jobs from last 7 days jobs = backup.list_backup_jobs(ByState='FAILED') if jobs['BackupJobs']: print(f"Found {len(jobs['BackupJobs'])} failed jobs!")
Results
  • Found 3 unprotected resources I missed
  • Now I get a  🚨 Alert  if any backup fails
  • Weekly CSV report in S3 for audit screenshot

Lessons Learned

  • Turning on backup != Being backed up
  • You must monitor  Backup Jobs  page, not just enable it once

  • Use  Backup Audit Manager  - it's free and built for this

Your turn: When was the last time you checked your Backup Jobs page? Go check now.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article