Use EnableVolumeIo with a CLI - Amazon Elastic Compute Cloud
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).

Use EnableVolumeIo with a CLI

The following code examples show how to use EnableVolumeIo.

CLI
Amazon CLI

To enable I/O for a volume

This example enables I/O on volume vol-1234567890abcdef0.

Command:

aws ec2 enable-volume-io --volume-id vol-1234567890abcdef0

Output:

{ "Return": true }
  • For API details, see EnableVolumeIo in Amazon CLI Command Reference.

PowerShell
Tools for PowerShell

Example 1: This example enables I/O operations for the specified volume, if I/O operations were disabled.

Enable-EC2VolumeIO -VolumeId vol-12345678
  • For API details, see EnableVolumeIo in Amazon Tools for PowerShell Cmdlet Reference.

For a complete list of Amazon SDK developer guides and code examples, see Create Amazon EC2 resources using an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.