Skip to content

Need Help: Automating EBS Volume Scaling at 80% Capacity!

0

Hey folks,
I came across an AWS blog that talks about scaling EBS volumes automatically, but I’m having a bit of trouble understanding how to set it up. 🤔

Does anyone know how to automatically scale an EBS volume when disk usage hits 80%? Any step-by-step guidance or tips would be super helpful! 🙏 Link: https://aws.amazon.com/blogs/storage/automating-amazon-ebs-volume-resizing-with-aws-step-functions-and-aws-systems-manager/

asked a year ago905 views
1 Answer
0

This sounds like a use case for CloudWatch alarms with an appropriate trigger to execute EBS scaling operations. I haven't done this myself, but looking at the alarm actions docs (all linked below) it looks like worst-case I could use a lambda action to invoke a function that increases the size of the EBS volume and later extends the file system?

The EBS docs tell you modifications take time, and that you should monitor the operation. This is why in the blog post you provided they use use their lambda trigger to start executing step functions -- the step function allows them to request the volume change, monitor the request, and then continue with their file system extension after the EBS volume has finished resizing. An alternative would be to use SQS or EventBridge to kick off a Lambda function every few minutes to check the status until it completes.

Docs links:

AWS
MODERATOR
answered 19 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.