AWS code-library documentation change
Summary
Added PowerShell V5 example for resetting AMI launch permissions to default
Security assessment
The example demonstrates security-related AMI permission management but does not indicate a specific security issue being addressed
Diff
diff --git a/code-library/latest/ug/ec2_example_ec2_ResetImageAttribute_section.md b/code-library/latest/ug/ec2_example_ec2_ResetImageAttribute_section.md index 77db331d2..6267ad80b 100644 --- a//code-library/latest/ug/ec2_example_ec2_ResetImageAttribute_section.md +++ b//code-library/latest/ug/ec2_example_ec2_ResetImageAttribute_section.md @@ -48,0 +49,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)_. + + + +