AWS ec2: Update DescribeVolumes example region and add output samples
Summary
Changed example region from us-east-1 to us-west-2, corrected KmsKeyId ARN format, and added full JSON output examples for describe-volumes commands.
Security assessment
The KmsKeyId/Encrypted fields appear only as illustrative example output; the change is a region/format correction and added sample output, not documentation of a security feature or fix.
Evidence
+ "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeVolumes_section.md b/ec2/latest/devguide/example_ec2_DescribeVolumes_section.md index 58dbf69..66fb6d8 100644 --- a//ec2/latest/devguide/example_ec2_DescribeVolumes_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeVolumes_section.md @@ -41 +41 @@ Output: - "AvailabilityZone": "us-east-1a", + "AvailabilityZone": "us-west-2a", @@ -53 +53 @@ Output: - "KmsKeyId": "arn:aws:kms:us-east-2a:123456789012:key/8c5b2c63-b9bc-45a3-a87a-5513eEXAMPLE, + "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", @@ -63 +63 @@ Output: - "AvailabilityZone": "us-east-1a", + "AvailabilityZone": "us-west-2a", @@ -83 +82,0 @@ The following `describe-volumes` example describes all volumes that are both att - --region us-east-1 \ @@ -87 +86,29 @@ The following `describe-volumes` example describes all volumes that are both att -For an example of the output for `describe-volumes`, see Example 1. +Output: + + + { + "Volumes": [ + { + "AvailabilityZone": "us-west-2a", + "Attachments": [ + { + "AttachTime": "2013-12-18T22:35:00.000Z", + "InstanceId": "i-1234567890abcdef0", + "VolumeId": "vol-049df61146c4d7901", + "State": "attached", + "DeleteOnTermination": true, + "Device": "/dev/sda1" + } + ], + "Encrypted": true, + "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", + "VolumeType": "gp2", + "VolumeId": "vol-049df61146c4d7901", + "State": "in-use", + "Iops": 100, + "SnapshotId": "snap-1234567890abcdef0", + "CreateTime": "2019-12-18T22:35:00.084Z", + "Size": 8 + } + ] + } @@ -95 +122,2 @@ The following `describe-volumes` example describes all volumes that have a statu - --filters Name=status,Values=available Name=availability-zone,Values=us-east-1a + --filters Name=status,Values=available Name=availability-zone,Values=us-west-2a + @@ -96,0 +125 @@ The following `describe-volumes` example describes all volumes that have a statu +Output: @@ -98 +127,17 @@ The following `describe-volumes` example describes all volumes that have a statu -For an example of the output for `describe-volumes`, see Example 1. + + { + "Volumes": [ + { + "AvailabilityZone": "us-west-2a", + "Attachments": [], + "Encrypted": false, + "VolumeType": "gp2", + "VolumeId": "vol-1234567890abcdef0", + "State": "available", + "Iops": 300, + "SnapshotId": "", + "CreateTime": "2020-02-27T00:02:41.791Z", + "Size": 100 + } + ] + } @@ -134 +179 @@ Output: -For additional examples using tag filters, see [Working with tags](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#Using_Tags_CLI) in the _Amazon EC2 User Guide_. +For additional examples using tag filters, see [Working with tags](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the _Amazon EC2 User Guide_.