AWS Security ChangesHomeSearch

AWS AWSEC2 documentation change

Service: AWSEC2 · 2025-04-16 · Documentation low

File: AWSEC2/latest/UserGuide/creating-security-group.md

Summary

Restructured command line documentation with added examples for AWS CLI and PowerShell, including security group creation syntax

Security assessment

Improves existing security group documentation with clearer examples but doesn't introduce new security features or address vulnerabilities

Diff

diff --git a/AWSEC2/latest/UserGuide/creating-security-group.md b/AWSEC2/latest/UserGuide/creating-security-group.md
index 90932c3bd..4a251f107 100644
--- a//AWSEC2/latest/UserGuide/creating-security-group.md
+++ b//AWSEC2/latest/UserGuide/creating-security-group.md
@@ -32 +32,4 @@ You can add inbound and outbound security group rules when you create a security
-###### To create a security group using the console
+Console
+    
+
+###### To create a security group
@@ -55 +58,17 @@ You can add inbound and outbound security group rules when you create a security
-###### To create a security group using the command line
+AWS CLI
+    
+
+###### To create a security group
+
+Use the following [create-security-group](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-security-group.html) command.
+    
+    
+    aws ec2 create-security-group \
+        --group-name my-security-group \
+        --description "my security group" \
+        --vpc-id vpc-0a60eb65b4EXAMPLE
+
+For examples that add rules, see [Configure security group rules](./changing-security-group.html#add-remove-security-group-rules).
+
+PowerShell
+    
@@ -57 +76 @@ You can add inbound and outbound security group rules when you create a security
-  * [create-security-group](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-security-group.html) (AWS CLI)
+###### To create a security group
@@ -59 +78 @@ You can add inbound and outbound security group rules when you create a security
-  * [New-EC2SecurityGroup](https://docs.aws.amazon.com/powershell/latest/reference/items/New-EC2SecurityGroup.html) (AWS Tools for Windows PowerShell)
+Use the following [New-EC2SecurityGroup](https://docs.aws.amazon.com/powershell/latest/reference/items/New-EC2SecurityGroup.html) cmdlet.
@@ -61,0 +81,4 @@ You can add inbound and outbound security group rules when you create a security
+    New-EC2SecurityGroup `
+        -GroupName my-security-group `
+        -Description "my security group" `
+        -VpcId vpc-0a60eb65b4EXAMPLE
@@ -62,0 +86 @@ You can add inbound and outbound security group rules when you create a security
+For examples that add rules, see [Configure security group rules](./changing-security-group.html#add-remove-security-group-rules).