Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, 
      see Getting Started with Amazon Web Services in China
         (PDF). 
    Request Amazon EBS volume modifications
With Elastic Volumes, you can dynamically increase the size, increase or decrease the
      performance, and change the volume type of your Amazon EBS volumes without detaching them.
      Modify an EBS volume using Elastic Volumes
      Before you begin, see the following:
      
      
        - Console
- 
            To modify an EBS volume- Open the Amazon EC2 console at
         https://console.amazonaws.cn/ec2/. 
- 
                In the navigation pane, choose Volumes. 
- 
                Select the volume to modify and choose Actions,
                  Modify volume. 
- 
                The Modify volume screen displays the volume ID and the
                  volume's current configuration, including type, size, IOPS, and throughput. Set new 
                  configuration values as follows: 
                   
                   
                   
                   
                - 
                    To modify the type, choose a value for Volume type. 
- 
                    To modify the size, enter a new value for Size. 
- 
                    (gp3,io1, andio2only) To modify the IOPS, enter a new value for 
                      IOPS.
 
- 
                    (gp3only) To modify the throughput, enter a new value for 
                      Throughput.
 
 
 
- 
                After you have finished changing the volume settings, choose Modify. 
                  When prompted for confirmation, choose Modify. 
- 
                  If you've increased the size of your volume, then you must also extend the 
                    volume's partition to make use of the additional storage capacity. For more 
                    information, see Extend the file system after resizing an Amazon EBS volume. 
- 
                (Windows instances only) If you increase the size of an 
                  NVMe volume on an instance that does not have the Amazon NVMe drivers, you must 
                  reboot the instance to enable Windows to see the new volume size. For more 
                  information about installing the Amazon NVMe drivers, see Amazon NVMe drivers. 
 
- Amazon CLI
- 
             
              To modify an EBS volumeUse the modify-volume
                command. For example, if you have a volume of type gp2with a size of 
                100 GiB, the following example changes its configuration to a volume of typeio1with 10,000 IOPS and a size of 200 GiB.
 aws ec2 modify-volume \
    --volume-id vol-01234567890abcdef\
    --volume-type io1 \
    --iops 10000 \
    --size 200
 The following is example output. {
    "VolumeModification": {
        "TargetSize": 200,
        "TargetVolumeType": "io1",
        "ModificationState": "modifying",
        "VolumeId": "vol-01234567890abcdef",
        "TargetIops": 10000,
        "StartTime": "2022-01-19T22:21:02.959Z",
        "Progress": 0,
        "OriginalVolumeType": "gp2",
        "OriginalIops": 300,
        "OriginalSize": 100
    }
}
 If you've increased the size of your volume, then you must also extend the 
                volume's partition to make use of the additional storage capacity. For more 
                information, see Extend the file system after resizing an Amazon EBS volume. 
- PowerShell
- 
             
              To modify an EBS volumeUse the Edit-EC2Volume cmdlet. For example, if you have a volume of type 
                gp2with a size of 100 GiB, the following example changes its 
                configuration to a volume of typeio1with 10,000 IOPS and a 
                size of 200 GiB.
 Edit-EC2Volume `
    -VolumeId vol-01234567890abcdef`
    -VolumeType io1 `
    -Iops 10000 `
    -Size 200
 If you've increased the size of your volume, then you must also extend the 
              volume's partition to make use of the additional storage capacity. For more 
              information, see Extend the file system after resizing an Amazon EBS volume. 
Modify an EBS volume if Elastic Volumes is not
          supported
      If you are using a supported instance type, you can use Elastic Volumes to dynamically
        modify the size, performance, and volume type of your Amazon EBS volumes without detaching
        them.
      If you cannot use Elastic Volumes but you need to modify the root (boot) volume, you
        must stop the instance, modify the volume, and then restart the instance.
      After the instance has started, you can check the file system size to see if your
        instance recognizes the larger volume space. On Linux, use the
            df -h command to check the file system size.
      [ec2-user ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1            7.9G  943M  6.9G  12% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
      If the size does not reflect your newly expanded volume, you must extend the file system
        of your device so that your instance can use the new space. For more information, see Extend the file system after resizing an Amazon EBS volume.
      With Windows instances, you might have to bring the volume online in order to use it. 
        For more information, see Make an Amazon EBS volume available for use. 
        You do not need to reformat the volume.
     
      Initialize Elastic Volumes support (if needed)
      Before you can modify a volume that was attached to an instance before November 3, 2016
        23:40 UTC, you must initialize volume modification support using one of the following
        actions:
      
      
      
        - Console
- 
            To determine whether your instances are ready- Open the Amazon EC2 console at
         https://console.amazonaws.cn/ec2/. 
- 
                On the navigation pane, choose Instances. 
- 
                Choose the Show/Hide Columns icon (the gear). Select the
                  Launch time attribute column and then choose
                  Confirm. 
- 
                Sort the list of instances by the Launch Time column. For
                  each instance that was started before the cutoff date, choose the
                  Storage tab and check the Attachment
                    time column to see when its volumes were attached. 
 
- Amazon CLI
- 
             
              To determine whether your instances are readyUse the following describe-instances command to determine whether the volume was attached
                before November 3, 2016 23:40 UTC. aws ec2 describe-instances \
    --query "Reservations[*].Instances[*].[InstanceId,LaunchTime<='2016-11-01',BlockDeviceMappings[*][Ebs.AttachTime<='2016-11-01']]" \
    --output text
 The first line of the output for each instance shows its ID and whether it was
              started before the cutoff date (True or False). The first line is followed by one or
              more lines that show whether each EBS volume was attached before the cutoff date (True
              or False). In the following example output, you must initialize volume modification
              for the first instance because it was started before the cutoff date and its root
              volume was attached before the cutoff date. The other instances are ready because they
              were started after the cutoff date. i-e905622e              True
True
i-719f99a8              False
True
i-006b02c1b78381e57     False
False
False
i-e3d172ed              False
True
 
- PowerShell
- 
             
              To determine whether an instance is readyUse the Get-EC2Instance cmdlet to determine whether a volume was attached before
                November 3, 2016 23:40 UTC. (Get-EC2Instance `
    -InstanceId i-1234567890abcdef0).Instances.BlockDeviceMappings | `
     Format-Table @{Name="VolumeId";Expression={$_.Ebs.VolumeId}}, `
                  @{Name="AttachTime";Expression={$_.Ebs.AttachTime}}
 The following is example output. VolumeId              AttachTime
--------              ----------
vol-0b243c8d927752d2b 3/23/2020 12:21:14 AM
vol-043eadbeb4a8387c3 9/5/2020 7:39:22 PM
vol-0c3f0c4e55c082753 4/23/2019 4:07:40 PM