AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/ec2_example_ec2_DescribeVolumes_section.md

Summary

Added PowerShell V5 examples for Get-EC2Volume including volume lookup by ID, status filtering, and full listing

Security assessment

Routine documentation update showing volume metadata retrieval. While encryption status is displayed, no security features or configurations are being documented.

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_DescribeVolumes_section.md b/code-library/latest/ug/ec2_example_ec2_DescribeVolumes_section.md
index 9d0b905c8..8ced14e0d 100644
--- a//code-library/latest/ug/ec2_example_ec2_DescribeVolumes_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_DescribeVolumes_section.md
@@ -193,0 +194,59 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example describes the specified EBS volume.**
+    
+    
+    Get-EC2Volume -VolumeId vol-12345678
+    
+
+**Output:**
+    
+    
+    Attachments      : {}
+    AvailabilityZone : us-west-2c
+    CreateTime       : 7/17/2015 4:35:19 PM
+    Encrypted        : False
+    Iops             : 90
+    KmsKeyId         :
+    Size             : 30
+    SnapshotId       : snap-12345678
+    State            : in-use
+    Tags             : {}
+    VolumeId         : vol-12345678
+    VolumeType       : standard
+
+**Example 2: This example describes your EBS volumes that have the status 'available'.**
+    
+    
+    Get-EC2Volume -Filter @{ Name="status"; Values="available" }
+    
+
+**Output:**
+    
+    
+    Attachments      : {}
+    AvailabilityZone : us-west-2c
+    CreateTime       : 12/21/2015 2:31:29 PM
+    Encrypted        : False
+    Iops             : 60
+    KmsKeyId         :
+    Size             : 20
+    SnapshotId       : snap-12345678
+    State            : available
+    Tags             : {}
+    VolumeId         : vol-12345678
+    VolumeType       : gp2
+    ...
+
+**Example 3: This example describes all your EBS volumes.**
+    
+    
+    Get-EC2Volume
+    
+
+  * For API details, see [DescribeVolumes](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+