Skip to content

Commit 8434c97

Browse files
committed
Update Readme
1 parent e25bdbf commit 8434c97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sam-eventbridge-ebs-snapshot/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Automated EBS Snapshot Creation on EC2 Shutdown using EventBridge
22

3-
This pattern demonstrates how to automatically create EBS snapshots when an EC2 instance shuts down using EventBridge with direct EBS snapshot target integration. It helps protect data on stateful applications or self-managed databases by capturing the volume state during instance shutdown events, reducing data loss risk and increasing recovery flexibility.
3+
This pattern demonstrates how to automatically create EBS snapshots when an EC2 instance shuts down using EventBridge with direct EBS snapshot target integration. It helps protect data on stateful applications or self-managed databases by capturing the volume state during instance shutdown events, reducing data loss risk and increasing recovery flexibility. While this implementation targets a single EBS volume, the pattern can be extended for multiple volumes by either deploying multiple stacks or modifying the template to use a Lambda function that can snapshot all attached volumes.
44

55
## Architecture
66

@@ -53,6 +53,12 @@ EC2 Instance State Change → EventBridge Rule → EBS CreateSnapshot (Direct Ta
5353
- Only triggers on graceful EC2 state changes (stopping, shutting-down, terminated)
5454
- Will not capture snapshots during abrupt failures where no state change event is emitted
5555

56+
### Multi-Volume Extension
57+
58+
To handle multiple volumes, you can:
59+
1. Deploy multiple stacks of this pattern, each targeting a different volume
60+
2. Modify the template to use a Lambda function that queries the EC2 API to discover and snapshot all volumes attached to the instance
61+
5662
## Use Cases
5763

5864
- Protecting stateful applications or self-managed databases running on EC2

0 commit comments

Comments
 (0)