AWS Security ChangesHomeSearch

AWS code-library documentation change

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

File: code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_ApplySecurityGroupsToLoadBalancer_section.md

Summary

Added PowerShell V5 examples for managing load balancer security groups

Security assessment

Demonstrates security group configuration which is fundamental to network security, but no evidence of addressing a specific vulnerability.

Diff

diff --git a/code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_ApplySecurityGroupsToLoadBalancer_section.md b/code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_ApplySecurityGroupsToLoadBalancer_section.md
index 124b3185d..926508848 100644
--- a//code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_ApplySecurityGroupsToLoadBalancer_section.md
+++ b//code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_ApplySecurityGroupsToLoadBalancer_section.md
@@ -74,0 +75,31 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example replaces the current security group for the specified load balancer with the specified security group.**
+    
+    
+    Join-ELBSecurityGroupToLoadBalancer -LoadBalancerName my-load-balancer -SecurityGroup sg-87654321
+    
+
+**Output:**
+    
+    
+    sg-87654321
+
+**Example 2: To keep the current security group and specify an additional security group, specify both the existing and new security groups.**
+    
+    
+    Join-ELBSecurityGroupToLoadBalancer -LoadBalancerName my-load-balancer -SecurityGroup @("sg-12345678", "sg-87654321")
+    
+
+**Output:**
+    
+    
+    sg-12345678
+    sg-87654321
+
+  * For API details, see [ApplySecurityGroupsToLoadBalancer](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+