AWS autoscaling documentation change
Summary
Added PowerShell V5 example for PutLifecycleHook API with parameter usage
Security assessment
The change demonstrates how to configure lifecycle hooks but does not address security vulnerabilities or explicitly document security controls. The example includes IAM role references but focuses on functionality rather than security guidance.
Diff
diff --git a/autoscaling/ec2/userguide/example_auto-scaling_PutLifecycleHook_section.md b/autoscaling/ec2/userguide/example_auto-scaling_PutLifecycleHook_section.md index d89d5cdf1..8f91e3960 100644 --- a//autoscaling/ec2/userguide/example_auto-scaling_PutLifecycleHook_section.md +++ b//autoscaling/ec2/userguide/example_auto-scaling_PutLifecycleHook_section.md @@ -87,0 +88,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example adds the specified lifecycle hook to the specified Auto Scaling group.** + + + Write-ASLifecycleHook -AutoScalingGroupName my-asg -LifecycleHookName "myLifecycleHook" -LifecycleTransition "autoscaling:EC2_INSTANCE_LAUNCHING" -NotificationTargetARN "arn:aws:sns:us-west-2:123456789012:my-sns-topic" -RoleARN "arn:aws:iam::123456789012:role/my-iam-role" + + + * For API details, see [PutLifecycleHook](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +