AWS ec2: Update create-volume examples to us-west-2 and add output/link
Summary
Changed example region from us-east-1 to us-west-2, refreshed placeholder snapshot/KMS key IDs and timestamps, added a tags example output block, and added 'For more information' links to EBS User Guide pages (including EBS encryption).
Security assessment
The diff is a routine documentation refresh: region strings, placeholder IDs, timestamps, and added cross-reference links. The encryption link is a generic pointer to existing EBS encryption docs, not new security guidance or a fix for a specific vulnerability.
Evidence
+For more information, see [Amazon EBS encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html) in the _Amazon EBS User Guide_.
Diff
diff --git a/ec2/latest/devguide/example_ec2_CreateVolume_section.md b/ec2/latest/devguide/example_ec2_CreateVolume_section.md index 70dac80..a56f59d 100644 --- a//ec2/latest/devguide/example_ec2_CreateVolume_section.md +++ b//ec2/latest/devguide/example_ec2_CreateVolume_section.md @@ -28 +28 @@ CLI -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. +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-west-2`, or you can add the `--region` parameter to specify the Region for the command. @@ -34 +34 @@ The following `create-volume` example creates an 80 GiB General Purpose SSD (gp2 - --availability-zone us-east-1a + --availability-zone us-west-2a @@ -42 +42 @@ Output: - "AvailabilityZone": "us-east-1a", + "AvailabilityZone": "us-west-2a", @@ -50 +50 @@ Output: - "CreateTime": "YYYY-MM-DDTHH:MM:SS.000Z", + "CreateTime": "2025-03-12T19:21:34.000Z", @@ -59 +59 @@ If you do not specify a volume type, the default volume type is `gp2`. - --availability-zone us-east-1a + --availability-zone us-west-2a @@ -61,0 +62,2 @@ If you do not specify a volume type, the default volume type is `gp2`. +For more information, see [Create an Amazon EBS volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html) in the _Amazon EBS User Guide_. + @@ -70,2 +72,2 @@ The following `create-volume` example creates a Provisioned IOPS SSD (io1) volum - --snapshot-id snap-066877671789bd71b \ - --availability-zone us-east-1a + --snapshot-id snap-0abcdef1234567890 \ + --availability-zone us-west-2a @@ -79 +81 @@ Output: - "AvailabilityZone": "us-east-1a", + "AvailabilityZone": "us-west-2a", @@ -86,2 +88,2 @@ Output: - "SnapshotId": "snap-066877671789bd71b", - "CreateTime": "YYYY-MM-DDTHH:MM:SS.000Z", + "SnapshotId": "snap-0abcdef1234567890", + "CreateTime": "2025-03-12T19:21:34.000Z", @@ -90,0 +93,2 @@ Output: +For more information, see [Create an Amazon EBS volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html) in the _Amazon EBS User Guide_. + @@ -99 +103 @@ The following `create-volume` example creates an encrypted volume using the defa - --availability-zone us-east-1a + --availability-zone us-west-2a @@ -107 +111 @@ Output: - "AvailabilityZone": "us-east-1a", + "AvailabilityZone": "us-west-2a", @@ -115 +119 @@ Output: - "CreateTime": "YYYY-MM-DDTHH:MM:SS.000Z", + "CreateTime": "2025-03-12T19:21:34.000Z", @@ -124 +128 @@ If encryption by default is enabled, the following example command creates an en - --availability-zone us-east-1a + --availability-zone us-west-2a @@ -134,2 +138,3 @@ If you use the `--kms-key-id` parameter to specify a customer managed CMK, you m - --kms-key-id 0ea3fef3-80a7-4778-9d8c-1c0c6EXAMPLE \ - --availability-zone us-east-1a + --kms-key-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 \ + --availability-zone us-west-2a + @@ -136,0 +142 @@ If you use the `--kms-key-id` parameter to specify a customer managed CMK, you m +For more information, see [Amazon EBS encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html) in the _Amazon EBS User Guide_. @@ -144 +150 @@ The following `create-volume` example creates a volume and adds two tags. - --availability-zone us-east-1a \ + --availability-zone us-west-2a \ @@ -149,0 +156,28 @@ The following `create-volume` example creates a volume and adds two tags. +Output: + + + { + "AvailabilityZoneId": "use1-az1", + "AvailabilityZone": "us-west-2a", + "Tags": [ + { + "Key": "purpose", + "Value": "production" + }, + { + "Key": "cost-center", + "Value": "cc123" + } + ], + "Encrypted": false, + "VolumeType": "gp2", + "VolumeId": "vol-1234567890abcdef0", + "State": "creating", + "Iops": 240, + "SnapshotId": "", + "CreateTime": "2025-03-12T19:21:34.000Z", + "Size": 80 + } + +For more information, see [Create an Amazon EBS volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html) in the _Amazon EBS User Guide_. +