AWS Security ChangesHomeSearch

AWS ec2 documentation change

Service: ec2 · 2025-06-28 · Documentation low

File: ec2/latest/devguide/example_ec2_DescribeSecurityGroups_section.md

Summary

Added PowerShell V5 examples for DescribeSecurityGroups API with VPC/EC2-Classic differentiation and filtering examples

Security assessment

While security groups are fundamental security controls, these changes only provide usage examples for existing API operations. The documentation clarifies VPC vs Classic usage but doesn't indicate any security vulnerability fixes or new security capabilities.

Diff

diff --git a/ec2/latest/devguide/example_ec2_DescribeSecurityGroups_section.md b/ec2/latest/devguide/example_ec2_DescribeSecurityGroups_section.md
index aff66852d..090a3479e 100644
--- a//ec2/latest/devguide/example_ec2_DescribeSecurityGroups_section.md
+++ b//ec2/latest/devguide/example_ec2_DescribeSecurityGroups_section.md
@@ -638,0 +639,50 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example describes the specified security group for a VPC. When working with security groups belonging to a VPC you must use the security group ID (-GroupId parameter), not name (-GroupName parameter), to reference the group.**
+    
+    
+    Get-EC2SecurityGroup -GroupId sg-12345678
+    
+
+**Output:**
+    
+    
+    Description         : default VPC security group
+    GroupId             : sg-12345678
+    GroupName           : default
+    IpPermissions       : {Amazon.EC2.Model.IpPermission}
+    IpPermissionsEgress : {Amazon.EC2.Model.IpPermission}
+    OwnerId             : 123456789012
+    Tags                : {}
+    VpcId               : vpc-12345678
+
+**Example 2: This example describes the specified security group for EC2-Classic. When working with security groups for EC2-Classic you may use either the group name (-GroupName parameter) or group ID (-GroupId parameter) to reference the security group.**
+    
+    
+    Get-EC2SecurityGroup -GroupName my-security-group
+    
+
+**Output:**
+    
+    
+    Description         : my security group
+    GroupId             : sg-45678901
+    GroupName           : my-security-group
+    IpPermissions       : {Amazon.EC2.Model.IpPermission, Amazon.EC2.Model.IpPermission}
+    IpPermissionsEgress : {}
+    OwnerId             : 123456789012
+    Tags                : {}
+    VpcId               :
+
+**Example 3: This example retrieves all the security groups for the vpc-0fc1ff23456b789eb**
+    
+    
+    Get-EC2SecurityGroup -Filter @{Name="vpc-id";Values="vpc-0fc1ff23456b789eb"}
+    
+
+  * For API details, see [DescribeSecurityGroups](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+