AWS Security ChangesHomeSearch

AWS ec2 documentation change

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

File: ec2/latest/devguide/example_ec2_AssignPrivateIpAddresses_section.md

Summary

Added PowerShell V5 examples for assigning secondary private IP addresses to network interfaces

Security assessment

The change adds API usage examples without any security context or configuration guidance. Private IP assignment is a network configuration task with no inherent security implications in this context.

Diff

diff --git a/ec2/latest/devguide/example_ec2_AssignPrivateIpAddresses_section.md b/ec2/latest/devguide/example_ec2_AssignPrivateIpAddresses_section.md
index d3b6f8e6c..0a6a8cc5c 100644
--- a//ec2/latest/devguide/example_ec2_AssignPrivateIpAddresses_section.md
+++ b//ec2/latest/devguide/example_ec2_AssignPrivateIpAddresses_section.md
@@ -62,0 +63,20 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example assigns the specified secondary private IP address to the specified network interface.**
+    
+    
+    Register-EC2PrivateIpAddress -NetworkInterfaceId eni-1a2b3c4d -PrivateIpAddress 10.0.0.82
+    
+
+**Example 2: This example creates two secondary private IP addresses and assigns them to the specified network interface.**
+    
+    
+    Register-EC2PrivateIpAddress -NetworkInterfaceId eni-1a2b3c4d -SecondaryPrivateIpAddressCount 2
+    
+
+  * For API details, see [AssignPrivateIpAddresses](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+