AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 examples for security group creation in VPC and EC2-Classic

Security assessment

Documents fundamental security feature (security groups) but doesn't address specific vulnerabilities

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_CreateSecurityGroup_section.md b/code-library/latest/ug/ec2_example_ec2_CreateSecurityGroup_section.md
index 19089d3b6..7a4e5d7c7 100644
--- a//code-library/latest/ug/ec2_example_ec2_CreateSecurityGroup_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_CreateSecurityGroup_section.md
@@ -545,0 +546,30 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a security group for the specified VPC.**
+    
+    
+    New-EC2SecurityGroup -GroupName my-security-group -Description "my security group" -VpcId vpc-12345678
+    
+
+**Output:**
+    
+    
+    sg-12345678
+
+**Example 2: This example creates a security group for EC2-Classic.**
+    
+    
+    New-EC2SecurityGroup -GroupName my-security-group -Description "my security group"
+    
+
+**Output:**
+    
+    
+    sg-45678901
+
+  * For API details, see [CreateSecurityGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+