AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

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

Security assessment

Includes SecurityGroupId and IAM instance profile parameters which are security-related features, but no indication of addressing a specific security flaw.

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_RunScheduledInstances_section.md b/code-library/latest/ug/ec2_example_ec2_RunScheduledInstances_section.md
index 7b2a619ec..c7a9d2747 100644
--- a//code-library/latest/ug/ec2_example_ec2_RunScheduledInstances_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_RunScheduledInstances_section.md
@@ -115,0 +116,19 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example launches the specified Scheduled Instance.**
+    
+    
+    New-EC2ScheduledInstance -ScheduledInstanceId sci-1234-1234-1234-1234-123456789012 -InstanceCount 1 `
+    -IamInstanceProfile_Name my-iam-role `
+    -LaunchSpecification_ImageId ami-12345678 `
+    -LaunchSpecification_InstanceType c4.large `
+    -LaunchSpecification_SubnetId subnet-12345678`
+    -LaunchSpecification_SecurityGroupId sg-12345678
+    
+
+  * For API details, see [RunScheduledInstances](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+