Skip to content
AWS PowerShell tools.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A set of AWS PowerShell tools.


Expands an EBS volume attached to an instance to make it larger.

The process described here is followed to expand a volume: During the process your instance will be shutdown and restarted afterwards.

On Ubuntu instances, typically the OS will automatically extend the volume at startup. On Windows instances, you are required to extend the volume on startup yourself, using the Disk Management applet.


EBS-ExpandDisk.ps1 -instanceId <String> -size <Int32> [-volumeId <String>]
EBS-ExpandDisk.ps1 -instanceName <String> -size <Int32> [-volumeId <String>]


  • instanceId - The instance Id to extend.
  • instanceName - The instance name to extend, based on case-sensitively matching the Name tag.
  • size - New size of the volume, in gibibytes. Must be larger than the current volume size.
  • volumeId - Optional volumeId to resize. If not specified, the cmdlet will extend the root volume attached to the instance.

One of instanceId or instanceName is required.


Resize specific volume vol-237e8ca on instance Id i-a0093c13 to 40GiB.

EBS-ExpandDisk.ps1 -instanceId i-a0093c13 -size 40 -volumeId vol-237e8ca

Resize root volume on an instance with Name tag of 'EC2-X01-0001' to 50GiB.

EBS-ExpandDisk.ps1 -instanceName EC2-X01-0001 -size 50


After volume expansion, an instance can take a long time to start up (eg. 5 to 10 minutes for a typical 50GiB volume). This is normal.

Specify your preferred AWS credential profile with Set-AWSCredentials. See

The following permissions are required on your IAM account:


And if you want to later delete the snapshot and old volume manually, you also need:

You can’t perform that action at this time.