Over time, EBS volume may get full and you need to increase its size.It's a common scenario where you need to increase the size of the disk attached to an EC2 instance. AWS makes it possible to increase the size of the volume while it's being actively used.
Sometimes it becomes complex to figure out which EBS volume to increase as there are multiple EBS volumes attached to an EC2 having the same size.
We at MagicPowershell today come with a PowerShell script that will solve this complex problem. The script will ask for the Drive letter, Size, and the EC2 instance name which needs to be resized.
Script Performs 3 tasks: 1. Finding the EBS volumeId based on the DriveLetter.
2. Extending the EBS volume accordingly.
3. Extending the windows file system after EBS volume resized.
0 comments:
Post a Comment