- Architecture for this lab:
- We will create a new SNS topic and SNS email subscription that we will use with our CloudWatch Events rule.
Create the CloudWatch Events rule that will once-daily snapshot the specified EBS volume and initiates an email via SNS.
Go to Cloudwatch
Click on "Rules" below "Events" (It will auto redirect you to Amazon EventBridge)
Click on Create Rule and select Schedule (To run on a schedule)
Select the time to run the schedule every 15 mins
Now add 2 Targets - one for creating EBS Snapshot and another for sending an email through SNS.
Target 1: Use EBS Create Snapshot and insert the volume ID of which you want to take a snapshot
Target 2: Select the SNS topic to send the email.
Finally, Review all the configurations and create a rule.
- Now, wait for the Snapshot to be created automatically.