AWS ec2 documentation change
Summary
Added PowerShell V5 example for resetting AMI launch permissions to default
Security assessment
The example demonstrates resetting AMI permissions to private (default state), which is a security best practice. However, there is no evidence this addresses a specific security incident.
Diff
diff --git a/ec2/latest/devguide/example_ec2_ResetImageAttribute_section.md b/ec2/latest/devguide/example_ec2_ResetImageAttribute_section.md index 43b48d62e..b3dc07bf2 100644 --- a//ec2/latest/devguide/example_ec2_ResetImageAttribute_section.md +++ b//ec2/latest/devguide/example_ec2_ResetImageAttribute_section.md @@ -42,0 +43,14 @@ PowerShell + + + + +**Tools for PowerShell V5** + + +**Example 1: This example resets the 'launchPermission' attribute to its default value. By default, AMIs are private.** + + + Reset-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission + + + * For API details, see [ResetImageAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.