Auto-remediate EBS volumes based on DiskSpace with no downtime

Your production server can run out of space for a lot of reasons. This happens because an EC2 instance neither reports disk usage nor memory usage to AWS CloudWatch. It can be passed to CloudWatch through a script.

The two ways to auto-remediate 'DiskSpaceUtilization' is to either increase the EBS volume size or move the data.

You can simply adopt the following templates for this use case