https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/TakeScheduledSnapshot.html
Step 1: Create a Rule
Create a rule that takes snapshots on a schedule. You can use a rate expression or a cron expression to specify the schedule. For more information, see Schedule Expressions for Rules.
To create a rule
-
Open the CloudWatch console at
https://console.aws.amazon.com/cloudwatch/.
-
In the navigation pane, choose Events,
Create rule.
-
For Event Source, do the following:
-
Choose Schedule.
-
Choose Fixed rate of and specify the schedule
interval (for example, 5 minutes). Alternatively, choose
Cron expression and specify a cron
expression (for example, every 15 minutes Monday through Friday,
starting at the current time).
-
Choose Schedule.
-
For Targets, choose Add target
and then select EC2 Create Snapshot API call.
-
For Volume ID, choose an EBS volume.
-
Choose Configure details.
-
For Rule definition, type a name and description for
the rule.
-
For AWS permissions, choose the option to create a
new role. This opens the IAM console in a new tab. The new role grants the
built-in target permissions to access resources on your behalf. Choose
Allow. The tab with the IAM window closes.
-
Choose Create rule.
0 comments:
Post a Comment