1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
Yes, you can be automatically notified via the EventBdrige event named Create snapshot
: it fires when a snapshot is complete.
As per documentation at https://docs.aws.amazon.com/ebs/latest/userguide/ebs-cloud-watch-events.html#snapshot-events
Create snapshot (createSnapshot)
The createSnapshot event is sent to your AWS account when an action to create a
snapshot completes. However it is not saved, logged, or archived. This event can
have a result of either succeeded or failed.
Event data
The listing below is an example of a JSON object emitted by EBS for a successful
createSnapshot event. In the detail section, the source field contains the ARN of
the source volume. The startTime and endTime fields indicate when creation of
the snapshot started and completed.
{
"version": "0",
"id": "01234567-0123-0123-0123-012345678901",
"detail-type": "EBS Snapshot Notification",
"source": "aws.ec2",
"account": "012345678901",
"time": "yyyy-mm-ddThh:mm:ssZ",
"region": "us-east-1",
"resources": [
"arn:aws:ec2::us-west-2:snapshot/snap-01234567"
],
"detail": {
"event": "createSnapshot",
"result": "succeeded",
"cause": "",
"request-id": "",
"snapshot_id": "arn:aws:ec2::us-west-2:snapshot/snap-01234567",
"source": "arn:aws:ec2::us-west-2:volume/vol-01234567",
"startTime": "yyyy-mm-ddThh:mm:ssZ",
"endTime": "yyyy-mm-ddThh:mm:ssZ" }
}
So, you can a Lambda on this event and from this Lamdba activate a SNS topic (email, chat, etc.) to notify about the completion or further automate a dependent process.
Best,
Didier
Relevant content
- asked 2 years ago
- asked 15 days ago
- asked 4 years ago
- asked 5 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
Thanks for sharing information, but its for common all sanp shot creation , i need to specific snapshots will create copy how can i get the event bridge will trigger specific snapshot trying to create
For that you should set up an EventBridge rule to define the triggering event and create a Lambda function containing the snapshot creation logic, then link the EventBridge rule to the Lambda function. This setup will enable automated snapshot creation based on the specified event triggers.