AWS Security ChangesHomeSearch

AWS code-library documentation change

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

File: code-library/latest/ug/auto-scaling_example_auto-scaling_CreateLaunchConfiguration_section.md

Summary

Added PowerShell V5 example for CreateLaunchConfiguration with security group and IAM role parameters

Security assessment

Includes security-related parameters (security groups, IAM roles) in the example, but does not address a specific security vulnerability.

Diff

diff --git a/code-library/latest/ug/auto-scaling_example_auto-scaling_CreateLaunchConfiguration_section.md b/code-library/latest/ug/auto-scaling_example_auto-scaling_CreateLaunchConfiguration_section.md
index c604fc96a..d2455aa09 100644
--- a//code-library/latest/ug/auto-scaling_example_auto-scaling_CreateLaunchConfiguration_section.md
+++ b//code-library/latest/ug/auto-scaling_example_auto-scaling_CreateLaunchConfiguration_section.md
@@ -190,0 +191,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a launch configuration named 'my-lc'. The EC2 instances launched by Auto Scaling groups that use this launch configuration use specified instance type, AMI, security group, and IAM role.**
+    
+    
+    New-ASLaunchConfiguration -LaunchConfigurationName my-lc -InstanceType "m3.medium" -ImageId "ami-12345678" -SecurityGroup "sg-12345678" -IamInstanceProfile "myIamRole"
+    
+
+  * For API details, see [CreateLaunchConfiguration](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+