HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/ec2/modify-volume.rst
**Example 1: To modify a volume by changing its size**

The following ``modify-volume`` example changes the size of the specified volume to 150GB. 

Command::

    aws ec2 modify-volume --size 150 --volume-id vol-1234567890abcdef0

Output::

    {
        "VolumeModification": {
            "TargetSize": 150,
            "TargetVolumeType": "io1",
            "ModificationState": "modifying",
            "VolumeId": " vol-1234567890abcdef0",
            "TargetIops": 100,
            "StartTime": "2019-05-17T11:27:19.000Z",
            "Progress": 0,
            "OriginalVolumeType": "io1",
            "OriginalIops": 100,
            "OriginalSize": 100
        }
    }

**Example 2: To modify a volume by changing its type, size, and IOPS value**

The following ``modify-volume`` example changes the volume type to Provisioned IOPS SSD, sets the target IOPS rate to 10000, and sets the volume size to 350GB. ::

    aws ec2 modify-volume \
        --volume-type io1 \
        --iops 10000 \
        --size 350 \
        --volume-id vol-1234567890abcdef0

Output::

    {
        "VolumeModification": {
            "TargetSize": 350,
            "TargetVolumeType": "io1",
            "ModificationState": "modifying",
            "VolumeId": "vol-0721c1a9d08c93bf6",
            "TargetIops": 10000,
            "StartTime": "2019-05-17T11:38:57.000Z",
            "Progress": 0,
            "OriginalVolumeType": "gp2",
            "OriginalIops": 150,
            "OriginalSize": 50
        }
    }