Database Restore
When to Use
- Data corruption
- Accidental deletion
- Migration gone wrong
Steps
-
Create new instance from snapshot
aws rds restore-db-instance-from-db-snapshot \
--db-instance-identifier statux-prod-restored \
--db-snapshot-identifier <snapshot-id> -
Wait for instance to be available (~10-15 minutes)
-
Update Secrets Manager with new endpoint
-
Restart applications to pick up new config
-
Verify data and application functionality
-
Delete old instance once confirmed