AWS - Smart Vault: Automated EBS Backup System with DynamoDB logging

Overview

My second project! This time I around I decided to create a Smart Vault - it's a serverless, tag-based backup automation system that creates and manages Amazon EBS snapshots for EC2 instances. It uses EventBridge to trigger AWS Lambda functions that:

The system is designed to minimize storage costs while providing traceable, automated protection for instance data.


Architecture

Core Components: - EC2 + EBS: Instances are tagged with backup: true to be included in the backup cycle - Lambda: Two functions handle snapshot creation and cleanup - EventBridge: Triggers Lambda on a daily schedule - DynamoDB: Stores audit logs for snapshot deletions - CloudWatch Logs: Captures job activity and debug output

Diagram

+------------+ +---------------------+ +-------------------------+ | EC2 w/ Tag | --> | EventBridge Schedule| --> | Lambda: Create Snapshot | +------------+ +---------------------+ +-------------------------+ | v +-------------+ | EBS Snapshot| +-------------+ | +----------------+ +----------------------+ | | EventBridge | -> | Lambda: Cleanup |----------+ | (daily) | | Old Snapshots | | +----------------+ +----------------------+ v +------------------------+ | DynamoDB Audit Log | +------------------------+


Features


Tech Stack


Screenshots

EventBridgeCron

EventBridgeSched

LambdaIAM

CloudWatchLog

EC2Launch


Future Improvements