Skip to main content

Command Palette

Search for a command to run...

Snapshot Management Using Lifecycle Manager

Updated
3 min read
Snapshot Management Using Lifecycle Manager
T

Cloud & SRE specializing in AWS and DevOps. I share my ongoing learning journey through practical tutorials and insights. Let's grow together.

  • Open the EC2 console page from AWS Console

Image description

1. Accessing the EC2 Console

  • Click on Lifecycle Manager on the left side menu and there is no lifecycle policies defined on the welcome screen.

Image description

2. Checking Lifecycle Manager

  • Click on Snapshots on the left side menu

Image description

3. Verifying Existing Snapshots

  • Filter the snapshots using the "environment" tag key and you will see there is no snapshot

Image description

4. Creating a Prod Snapshot Policy

  • Click on Lifecycle Manager on the left side menu and click Next step

Image description

4.1. Policy Setup & Target Tags

  • Click on Target resource tags and select environment and prod as the tag key

Image description

  • Click Add

Image description

4.2. Policy Description & IAM Role

  • Write prod-snapshot-policy at Policy description

Image description

  • Select Choose another role and select AWSDataLifecycleManagerDefaultRole

Image description

  • Click Next

Image description

4.3. Schedule Configuration

  • Fill the information:

  • Schedule name- Schedule 1

  • Frequency - Daily
  • Every - 1 hour
  • Starting at - 09:00
  • Retention type - Age
  • Expire from standard tier - 1
  • after creation - days

and Click checkbox of Copy tags from source

Image description

4.4. Policy Review and Creation

  • Click Review policy

Image description

  • Click Create policy`

Image description

4.5 Policy Creation Result

  • Now The policy should be created like this

Image description

5. Creating a Dev Snapshot Policy

  • Let create another policy for environment:dev

  • Select Custom policy

  • Select EBS snapshot policy

  • Click Next

Image description

5.1 Policy Type & Target Tags

    • Click on Target resource tags and select environment and dev as the tag key and click Add

Image description

5.2. Policy Description & IAM Role

  • Write dev-snapshot-policy at Policy description

Image description

  • Select Choose another role and select AWSDataLifecycleManagerDefaultRole

Image description

  • Click Next

Image description

5.3. Schedule Configuration

  • Fill the information:

  • Schedule name- Schedule 1

  • Frequency - Daily
  • Every - 1 hour
  • Starting at - 09:00
  • Retention type - Age
  • Expire from standard tier - 1
  • after creation - days

and Click checkbox of Copy tags from source

Image description

5.4. Policy Review and Creation

  • Click Review policy

Image description

  • Click Create policy`

Image description

6. Policy Creation Result

  • Now The policy should be created like this

Image description

7. Verifying Automated Snapshots

  • After a couple of hours of the prod and dev snapshot policies being created, you should be able to see the first snapshots created by Lifecycle Manager. The snapshots will have a tag key dlm:managed set to a value of "true".

Resources & Next Steps


More from this blog

W

Whispering Cloud Insights

88 posts

Documenting my path to cloud journey. Sharing lessons, tutorials, and insights from my continuous learning journey. Learn with me.