AWS AWSEC2 documentation change
Summary
Updated documentation for EC2 hibernation with editorial changes: simplified section headers, removed redundant notes, adjusted PowerShell code formatting, and updated prerequisite links.
Security assessment
The changes are editorial improvements and formatting updates. Security-critical elements like encryption requirements for hibernation remain unchanged. No security vulnerabilities or new security features are documented in the changes.
Diff
diff --git a/AWSEC2/latest/UserGuide/enabling-hibernation.md b/AWSEC2/latest/UserGuide/enabling-hibernation.md index 0dfad06f9..033c90b85 100644 --- a//AWSEC2/latest/UserGuide/enabling-hibernation.md +++ b//AWSEC2/latest/UserGuide/enabling-hibernation.md @@ -53 +53 @@ Console -For more information about the prerequisites for the root volume, see [Prerequisites for Amazon EC2 instance hibernation](./hibernating-prerequisites.html). +For more information about the prerequisites for the root volume, see [Prerequisites for EC2 instance hibernation](./hibernating-prerequisites.html). @@ -92,2 +91,0 @@ Specify the following in `mapping.json`. -###### Note - @@ -104 +102 @@ PowerShell -###### To enable hibernation for an On-Demand Instance using the AWS Tools for Windows PowerShell +###### To enable hibernation for an On-Demand Instance @@ -109,6 +107,6 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc - PS C:\> $ebs_encrypt = New-Object Amazon.EC2.Model.BlockDeviceMapping - PS C:\> $ebs_encrypt.DeviceName = "/dev/xvda" - PS C:\> $ebs_encrypt.Ebs = New-Object Amazon.EC2.Model.EbsBlockDevice - PS C:\> $ebs_encrypt.Ebs.VolumeSize = 30 - PS C:\> $ebs_encrypt.Ebs.VolumeType = "gp2" - PS C:\> $ebs_encrypt.Ebs.Encrypted = $true + $ebs_encrypt = New-Object Amazon.EC2.Model.BlockDeviceMapping + $ebs_encrypt.DeviceName = "/dev/xvda" + $ebs_encrypt.Ebs = New-Object Amazon.EC2.Model.EbsBlockDevice + $ebs_encrypt.Ebs.VolumeSize = 30 + $ebs_encrypt.Ebs.VolumeType = "gp2" + $ebs_encrypt.Ebs.Encrypted = $true @@ -116 +114 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc - PS C:\> New-EC2Instance ` + New-EC2Instance ` @@ -125,2 +122,0 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc -###### Note - @@ -141,2 +136,0 @@ Console -You can use the launch instance wizard in the Amazon EC2 console to enable hibernation for a Spot Instance. - @@ -163 +157 @@ You can use the launch instance wizard in the Amazon EC2 console to enable hiber -For more information about the prerequisites for the root volume, see [Prerequisites for Amazon EC2 instance hibernation](./hibernating-prerequisites.html). +For more information about the prerequisites for the root volume, see [Prerequisites for EC2 instance hibernation](./hibernating-prerequisites.html). @@ -179,3 +173 @@ AWS CLI -You can enable hibernation for a Spot Instance using the [run-instances](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/run-instances.html) command. - -###### To enable hibernation for a Spot Instance using the `hibernation-options` parameter +###### To enable hibernation for a Spot Instance @@ -216,2 +207,0 @@ Specify the EBS root volume parameters in `mapping.json` as follows. -###### Note - @@ -228 +218 @@ PowerShell -###### To enable hibernation for a Spot Instance using the AWS Tools for Windows PowerShell +###### To enable hibernation for a Spot Instance @@ -233,6 +223,6 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc - PS C:\> $ebs_encrypt = New-Object Amazon.EC2.Model.BlockDeviceMapping - PS C:\> $ebs_encrypt.DeviceName = "/dev/xvda" - PS C:\> $ebs_encrypt.Ebs = New-Object Amazon.EC2.Model.EbsBlockDevice - PS C:\> $ebs_encrypt.Ebs.VolumeSize = 30 - PS C:\> $ebs_encrypt.Ebs.VolumeType = "gp2" - PS C:\> $ebs_encrypt.Ebs.Encrypted = $true + $ebs_encrypt = New-Object Amazon.EC2.Model.BlockDeviceMapping + $ebs_encrypt.DeviceName = "/dev/xvda" + $ebs_encrypt.Ebs = New-Object Amazon.EC2.Model.EbsBlockDevice + $ebs_encrypt.Ebs.VolumeSize = 30 + $ebs_encrypt.Ebs.VolumeType = "gp2" + $ebs_encrypt.Ebs.Encrypted = $true @@ -240 +230 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc - PS C:\> New-EC2Instance ` + New-EC2Instance ` @@ -255,2 +244,0 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc -###### Note - @@ -303,3 +291 @@ PowerShell -###### To view if an instance is enabled for hibernation using the AWS Tools for Windows PowerShell - -Use the [Get-EC2Instance](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2Instance.html) command and specify the `-Filter @{ Name="hibernation-options.configured"; Value="true"}` parameter to filter instances that are enabled for hibernation. +###### To view if an instance is enabled for hibernation @@ -306,0 +293 @@ Use the [Get-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc +Use the [Get-EC2Instance](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2Instance.html) cmdlet and filter instances that are enabled for hibernation. @@ -308 +294,0 @@ Use the [Get-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc - (Get-EC2Instance -Filter @{Name="hibernation-options.configured"; Value="true"}).Instances @@ -310 +296,2 @@ Use the [Get-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc -The output lists the EC2 instances that are enabled for hibernation. + (Get-EC2Instance ` + -Filter @{Name="hibernation-options.configured"; Value="true"}).Instances