AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for network interface creation with security group association

Security assessment

Shows security group configuration but doesn't address specific vulnerabilities

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_CreateNetworkInterface_section.md b/code-library/latest/ug/ec2_example_ec2_CreateNetworkInterface_section.md
index 2b61ce463..b04748c1e 100644
--- a//code-library/latest/ug/ec2_example_ec2_CreateNetworkInterface_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_CreateNetworkInterface_section.md
@@ -267,0 +268,36 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates the specified network interface.**
+    
+    
+    New-EC2NetworkInterface -SubnetId subnet-1a2b3c4d -Description "my network interface" -Group sg-12345678 -PrivateIpAddress 10.0.0.17
+    
+
+**Output:**
+    
+    
+    Association        :
+    Attachment         :
+    AvailabilityZone   : us-west-2c
+    Description        : my network interface
+    Groups             : {my-security-group}
+    MacAddress         : 0a:72:bc:1a:cd:7f
+    NetworkInterfaceId : eni-12345678
+    OwnerId            : 123456789012
+    PrivateDnsName     : ip-10-0-0-17.us-west-2.compute.internal
+    PrivateIpAddress   : 10.0.0.17
+    PrivateIpAddresses : {}
+    RequesterId        :
+    RequesterManaged   : False
+    SourceDestCheck    : True
+    Status             : pending
+    SubnetId           : subnet-1a2b3c4d
+    TagSet             : {}
+    VpcId              : vpc-12345678
+
+  * For API details, see [CreateNetworkInterface](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+