From 6eff5f707047f9cb9c29389d44fea180820137eb Mon Sep 17 00:00:00 2001 From: aemous Date: Thu, 27 Aug 2026 14:30:48 -0400 Subject: [PATCH] Add AvailabilityZoneId to the output in the examples for the EC2 create-volume command. --- .changes/next-release/enhancement-ec2-92203.json | 5 +++++ awscli/examples/ec2/create-volume.rst | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changes/next-release/enhancement-ec2-92203.json diff --git a/.changes/next-release/enhancement-ec2-92203.json b/.changes/next-release/enhancement-ec2-92203.json new file mode 100644 index 000000000000..47fa03e392e9 --- /dev/null +++ b/.changes/next-release/enhancement-ec2-92203.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "``ec2``", + "description": "Updated AWS CLI v2 API reference for EC2 create-volume command so that the examples include ``AvailabilityZoneId`` in the output." +} diff --git a/awscli/examples/ec2/create-volume.rst b/awscli/examples/ec2/create-volume.rst index b1a0a614095c..b30194404a92 100644 --- a/awscli/examples/ec2/create-volume.rst +++ b/awscli/examples/ec2/create-volume.rst @@ -1,4 +1,4 @@ -**To create an empty General Purpose SSD (gp2) volume** +**Example 1: To create an empty General Purpose SSD (gp2) volume** The following ``create-volume`` example creates an 80 GiB General Purpose SSD (gp2) volume in the specified Availability Zone. Note that the current Region must be ``us-east-1``, or you can add the ``--region`` parameter to specify the Region for the command. :: @@ -10,6 +10,7 @@ The following ``create-volume`` example creates an 80 GiB General Purpose SSD (g Output:: { + "AvailabilityZoneId": "use1-az1", "AvailabilityZone": "us-east-1a", "Tags": [], "Encrypted": false, @@ -36,11 +37,12 @@ The following ``create-volume`` example creates a Provisioned IOPS SSD (io1) vol --volume-type io1 \ --iops 1000 \ --snapshot-id snap-066877671789bd71b \ - --availability-zone us-east-1a + --availability-zone us-east-1a Output:: { + "AvailabilityZoneId": "use1-az1", "AvailabilityZone": "us-east-1a", "Tags": [], "Encrypted": false, @@ -60,11 +62,12 @@ The following ``create-volume`` example creates an encrypted volume using the de aws ec2 create-volume \ --size 80 \ --encrypted \ - --availability-zone us-east-1a + --availability-zone us-east-1a Output:: { + "AvailabilityZoneId": "use1-az1", "AvailabilityZone": "us-east-1a", "Tags": [], "Encrypted": true,