Open the Amazon EC2 console and go to the Lifecycle Manager page. Then click "Next Step".
Add an optional description, here we put dev-tutorial-automated-snapshot. Select Volume in the target resource types field.
In the Target resource tags field define which volumes the policy will apply to. Finally, click Add.
On the Configure schedule screen, add a name for the policy. In our example, we chose to run the policy every 24 hours. And we set out to start the policy at 1 o'clock in the morning. Finally, under Retention type, we select Count and set 3 snapshots.
In the Tagging screen, we select the option Copy tags from source to bring the tags defined in the volume.
The Fast snapshot restore option allows you to restore the fastest volumes.
The Cross-Region copy option allows you to make copies of the snapshots in other regions. In the event of a disaster, you can restore applications with backups stored in the secondary region to minimize data loss and recovery time.
Review the settings and complete the creation of the Lifecycle policy under Create policy.
🎉 A Lifecycle policy was created to automate daily backups of Amazon EBS volumes.