Delete Unused EBS Volumes with AWS Config and Systems Manager

Delete Unused EBS Volumes with AWS Config and Systems Manager
Delete Unused EBS Volumes with AWS Config and Systems Manager

CLOUD LABS



Delete Unused EBS Volumes with AWS Config and Systems Manager

In this Cloud Lab, you’ll enable AWS Config to detect unused EBS volumes and trigger an automatic remediation action that snapshots and deletes them using AWS Systems Manager.

8 Tasks

intermediate

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of AWS Config and how it evaluates AWS resource compliance
Working knowledge of AWS Config managed rules and the automatic remediation framework
The ability to detect unused EBS volumes by deploying the ec2-volume-inuse-check rule
Hands-on experience automating the snapshot and deletion of unused volumes via SSM Automation
An understanding of Amazon SNS notifications used to monitor the success or failure of remediation actions

Technologies
Config
EBS logoEBS
Systems Manager
S3 logoS3
Cloud Lab Overview

Amazon EBS volumes provide reliable block-level storage for EC2 instances, but unused volumes can accumulate over time, increasing costs.

AWS Config helps you continuously monitor resource configurations and evaluate them against predefined rules, enabling proactive governance and cost optimization. In this Cloud Lab, you’ll learn how AWS Config identifies unused EBS volumes and how automated remediation actions help you manage them efficiently.

In this hands-on Cloud Lab, you’ll prepare the environment for AWS Config by first creating an S3 bucket with the required bucket policy and setting up an Amazon SNS topic for notifications.

Next, you’ll provision an EBS volume that remains in the available state, allowing it to be evaluated. The main focus of the Coud Lab is on enabling AWS Config recording and adding the ec2-volume-inuse-check rule to identify unused EBS volumes.

After configuring AWS Config, you’ll add the AWSConfigRemediation-DeleteUnusedEBSVolume automatic remediation of the rule.

When you evaluate the rule, any noncompliant EBS volumes will be detected, and the remediation will automatically create a snapshot of each volume before deleting it. After completing this Cloud Lab, you will understand how AWS Config works behind the scenes, how to implement automated governance workflows, and how to use AWS Systems Manager Automation to enforce resource compliance. These skills will enable you to design more secure, controlled, and cost-effective cloud environments.

Below is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Monitoring the EBS volumes using AWS Config and applying an automatic remediation workflow using AWS SSM
Monitoring the EBS volumes using AWS Config and applying an automatic remediation workflow using AWS SSM
Cloud Lab Tasks
1.Introduction
Getting Started
2.Set Up Environment for AWS Config
Create an S3 Bucket and Configure Bucket Policy
Create an SNS Topic and Subscribe to Email
Create an EBS Volume
3.Configure AWS Config
Enable AWS Config Recording and Add a Rule
Add Automatic Remediation and Create a Snapshot
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like