AWS ec2 documentation change
Summary
Added PowerShell V5 examples for DescribeInstanceAttribute including security group verification, EBS optimization status, API termination protection, and shutdown behavior
Security assessment
The change documents security-related attributes like security group associations and disableApiTermination protection, but does not address any specific security vulnerability. It provides examples for checking existing security configurations rather than introducing new security measures.
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeInstanceAttribute_section.md b/ec2/latest/devguide/example_ec2_DescribeInstanceAttribute_section.md index 69cce30ca..b8100d586 100644 --- a//ec2/latest/devguide/example_ec2_DescribeInstanceAttribute_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeInstanceAttribute_section.md @@ -176,0 +177,77 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example describes the instance type of the specified instance.** + + + Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute instanceType + + +**Output:** + + + InstanceType : t2.micro + +**Example 2: This example describes whether enhanced networking is enabled for the specified instance.** + + + Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute sriovNetSupport + + +**Output:** + + + SriovNetSupport : simple + +**Example 3: This example describes the security groups for the specified instance.** + + + (Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute groupSet).Groups + + +**Output:** + + + GroupId + ------- + sg-12345678 + sg-45678901 + +**Example 4: This example describes whether EBS optimization is enabled for the specified instance.** + + + Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute ebsOptimized + + +**Output:** + + + EbsOptimized : False + +**Example 5: This example describes the 'disableApiTermination' attribute of the specified instance.** + + + Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute disableApiTermination + + +**Output:** + + + DisableApiTermination : False + +**Example 6: This example describes the 'instanceInitiatedShutdownBehavior' attribute of the specified instance.** + + + Get-EC2InstanceAttribute -InstanceId i-12345678 -Attribute instanceInitiatedShutdownBehavior + + +**Output:** + + + InstanceInitiatedShutdownBehavior : stop + + * For API details, see [DescribeInstanceAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +