Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/next-release/enhancement-ec2-92203.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we normally do changelog entries for help output? Though technically it does impact the help command.

"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."
}
9 changes: 6 additions & 3 deletions awscli/examples/ec2/create-volume.rst
Original file line number Diff line number Diff line change
@@ -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. ::

Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
Loading