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.
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
+------------+ +---------------------+ +-------------------------+
| EC2 w/ Tag | --> | EventBridge Schedule| --> | Lambda: Create Snapshot |
+------------+ +---------------------+ +-------------------------+
|
v
+-------------+
| EBS Snapshot|
+-------------+
|
+----------------+ +----------------------+ |
| EventBridge | -> | Lambda: Cleanup |----------+
| (daily) | | Old Snapshots | |
+----------------+ +----------------------+ v
+------------------------+
| DynamoDB Audit Log |
+------------------------+
backup: true
are processedInstanceId
and CreatedBy: SmartVault