AWS ec2 documentation change
Summary
Added PowerShell V5 examples for creating EBS volumes
Security assessment
Standard volume creation examples without security considerations like encryption
Diff
diff --git a/ec2/latest/devguide/example_ec2_CreateVolume_section.md b/ec2/latest/devguide/example_ec2_CreateVolume_section.md index c2b5fc586..450a2dcc9 100644 --- a//ec2/latest/devguide/example_ec2_CreateVolume_section.md +++ b//ec2/latest/devguide/example_ec2_CreateVolume_section.md @@ -185,0 +186,42 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example creates the specified volume.** + + + New-EC2Volume -Size 50 -AvailabilityZone us-west-2a -VolumeType gp2 + + +**Output:** + + + Attachments : {} + AvailabilityZone : us-west-2a + CreateTime : 12/22/2015 1:42:07 AM + Encrypted : False + Iops : 150 + KmsKeyId : + Size : 50 + SnapshotId : + State : creating + Tags : {} + VolumeId : vol-12345678 + VolumeType : gp2 + +**Example 2: This example request creates a volume and applies a tag with a key of stack and a value of production.** + + + $tag = @{ Key="stack"; Value="production" } + + $tagspec = new-object Amazon.EC2.Model.TagSpecification + $tagspec.ResourceType = "volume" + $tagspec.Tags.Add($tag) + + New-EC2Volume -Size 80 -AvailabilityZone "us-west-2a" -TagSpecification $tagspec + + + * For API details, see [CreateVolume](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +