Lifecycle Manager helps you protect your data with regular backups according to your needs and also reduces storage costs by deleting outdated backups. To create this policy, follow the steps below:

  1. Open the Amazon EC2 console and go to the Lifecycle Manager page. Then click "Next Step".

    snapshot 10.png

  2. Add an optional description, here we put dev-tutorial-automated-snapshot. Select Volume in the target resource types field.

  3. In the Target resource tags field define which volumes the policy will apply to. Finally, click Add.

    snapshot 11.png

  4. 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.

    snapshot 12.png

  5. In the Tagging screen, we select the option Copy tags from source to bring the tags defined in the volume.

    snapshot 13.png

  6. The Fast snapshot restore option allows you to restore the fastest volumes.

    snapshot 14.png

  7. 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.

    snapshot 15.png

  8. Review the settings and complete the creation of the Lifecycle policy under Create policy.

snapshot 16.png

🎉 A Lifecycle policy was created to automate daily backups of Amazon EBS volumes.