Amazon CloudWatch Events
User Guide

Scenario 2: Take Scheduled EBS Snapshots

You can run CloudWatch Events rules according to a schedule. In this scenario, you create a snapshot of an existing Amazon Elastic Block Store (Amazon EBS) volume on a schedule. You can choose a fixed rate to create a snapshot every few minutes or use a cron expression to specify that the snapshot is made at a specific time of day. For more information about working with Amazon EBS snapshots, see Amazon EBS Snapshots in the Amazon EC2 User Guide for Linux Instances.

Step 1: Create an Amazon CloudWatch Events Rule

To create a CloudWatch Events rule

  1. Open the CloudWatch console at

  2. In the navigation pane, choose Events.

  3. Choose Create rule, and then under Event selector, choose Schedule.

  4. Do one of the following:

    • To create a snapshot in time intervals, choose Fixed rate of, enter the number of minutes (for example, 5) in the field, and then choose minutes from the list.

    • To create a snapshot at a specific time of day, choose Cron expression, and enter a cron expression (for example, 0/5 * * * ? *) in the field. For more information about using cron expressions, see Schedule Expression Syntax for Rules.

  5. Under Targets, choose Add target.

  6. In the Select target type list, choose Built-in-target, and in the Action list, choose Create a snapshot of an EBS volume.

  7. In the Volume ID drop-down list, enter the ID of the EBS volume that you want to create a snapshot of.

  8. Choose Configure details. On the Configure rule details screen, in the Name field, type a name for the rule.

  9. In the Description field, enter a brief description for your rule, for example, Create EBS snapshot.

  10. If you're satisfied with the rule, choose Create rule.

Step 2: Test Your Amazon CloudWatch Events Rule

You can test your rule by viewing the Amazon EC2 console after the Amazon EBS snapshot has been taken.

To test your CloudWatch Events rule

  1. Open the Amazon EC2 console at

  2. In the navigation pane, under Elastic Block Store, choose Snapshots.

  3. In the list of snapshots, verify that your snapshot appears.