AWS ec2 documentation change
Summary
Added PowerShell V5 examples for DescribeImageAttribute including AMI description retrieval, launch permissions check, and enhanced networking (sriovNetSupport) verification
Security assessment
The change documents how to check AMI launch permissions and enhanced networking settings, which are security-related configurations. However, this is routine documentation of existing features rather than addressing a specific security vulnerability.
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeImageAttribute_section.md b/ec2/latest/devguide/example_ec2_DescribeImageAttribute_section.md index a745a59ad..b463af176 100644 --- a//ec2/latest/devguide/example_ec2_DescribeImageAttribute_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeImageAttribute_section.md @@ -124,0 +125,62 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example gets the description for the specified AMI.** + + + Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute description + + +**Output:** + + + BlockDeviceMappings : {} + Description : My image description + ImageId : ami-12345678 + KernelId : + LaunchPermissions : {} + ProductCodes : {} + RamdiskId : + SriovNetSupport : + +**Example 2: This example gets the launch permissions for the specified AMI.** + + + Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission + + +**Output:** + + + BlockDeviceMappings : {} + Description : + ImageId : ami-12345678 + KernelId : + LaunchPermissions : {all} + ProductCodes : {} + RamdiskId : + SriovNetSupport : + +**Example 3: This example test whether enhanced networking is enabled.** + + + Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute sriovNetSupport + + +**Output:** + + + BlockDeviceMappings : {} + Description : + ImageId : ami-12345678 + KernelId : + LaunchPermissions : {} + ProductCodes : {} + RamdiskId : + SriovNetSupport : simple + + * For API details, see [DescribeImageAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +