aws ec2 modify-volume-attribute
Modifies a volume attribute. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To modify a volume attribute
The following modify-volume-attribute example sets the autoEnableIo attribute of the volume with the ID vol-1234567890abcdef0 to true.
aws ec2 modify-volume-attribute --volume-id vol-1234567890abcdef0 --auto-enable-ioIdentify--volume-idThe ID of the volume.--auto-enable-ioIndicates whether the volume should be auto-enabled for I/O operations.This command produces no output.
For more information, see Amazon EBS volume status checks in the Amazon EBS User Guide.
Options
--auto-enable-ioIndicates whether the volume should be auto-enabled for I/O operations.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--volume-idThe ID of the volume.