AWS Security ChangesHomeSearch

AWS ec2 documentation change

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

File: ec2/latest/devguide/example_ec2_CreateSecurityGroup_section.md

Summary

Added PowerShell V5 examples for creating security groups

Security assessment

Documents security group creation which is fundamental to network security, but doesn't include specific security recommendations

Diff

diff --git a/ec2/latest/devguide/example_ec2_CreateSecurityGroup_section.md b/ec2/latest/devguide/example_ec2_CreateSecurityGroup_section.md
index 360cff227..f35e2d930 100644
--- a//ec2/latest/devguide/example_ec2_CreateSecurityGroup_section.md
+++ b//ec2/latest/devguide/example_ec2_CreateSecurityGroup_section.md
@@ -543,0 +544,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)_. 
+
+
+
+