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_CreateLoadBalancerListeners_section.md

Summary

Added PowerShell V5 example for creating HTTPS listener with SSL certificate configuration

Security assessment

The change demonstrates secure configuration of HTTPS listeners with SSL certificates, promoting encryption best practices but does not address a specific security vulnerability

Diff

diff --git a/code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_CreateLoadBalancerListeners_section.md b/code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_CreateLoadBalancerListeners_section.md
index a2c7b4cd2..437ba92d8 100644
--- a//code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_CreateLoadBalancerListeners_section.md
+++ b//code-library/latest/ug/elastic-load-balancing_example_elastic-load-balancing_CreateLoadBalancerListeners_section.md
@@ -64,0 +65,20 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example adds an HTTPS listener to the specified load balancer.**
+    
+    
+    $httpsListener = New-Object Amazon.ElasticLoadBalancing.Model.Listener
+    $httpsListener.Protocol = "https"
+    $httpsListener.LoadBalancerPort = 443
+    $httpsListener.InstanceProtocol = "https"
+    $httpsListener.InstancePort = 443 
+    $httpsListener.SSLCertificateId="arn:aws:iam::123456789012:server-certificate/my-server-cert"
+    New-ELBLoadBalancerListener -LoadBalancerName my-load-balancer -Listener $httpsListener
+    
+
+  * For API details, see [CreateLoadBalancerListeners](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+