AWS cli documentation change
Summary
Added --volume-id parameter for root volume replacement and updated descriptions
Security assessment
Added new volume replacement option without security context. No evidence of addressing vulnerabilities. Security impact: Allows specifying custom volumes which could introduce risks if untrusted volumes are used, but no specific security guidance added.
Diff
diff --git a/cli/latest/reference/ec2/create-replace-root-volume-task.md b/cli/latest/reference/ec2/create-replace-root-volume-task.md index 20360a765..e7e27b1df 100644 --- a//cli/latest/reference/ec2/create-replace-root-volume-task.md +++ b//cli/latest/reference/ec2/create-replace-root-volume-task.md @@ -15 +15 @@ - * [AWS CLI 2.35.16 Command Reference](../../index.html) » + * [AWS CLI 2.35.19 Command Reference](../../index.html) » @@ -60 +60 @@ First time using the AWS CLI? See the [User Guide](https://docs.aws.amazon.com/c -Replaces the EBS-backed root volume for a `running` instance with a new volume that is restored to the original root volume’s launch state, that is restored to a specific snapshot taken from the original root volume, or that is restored from an AMI that has the same key characteristics as that of the instance. +Replaces the EBS-backed root volume for a `running` instance with a new volume that is restored to the original root volume’s launch state, that is restored to a specific snapshot taken from the original root volume, that is restored from an AMI that has the same key characteristics as that of the instance, or that is replaced by a specified volume. @@ -77,0 +78 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/ec2-20 + [--volume-id <value>] @@ -111 +112 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/ec2-20 -> If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter. +> If you want to restore the replacement root volume to the initial launch state, if you want to restore the replacement root volume from an AMI, or if you want to replace the root volume with a specified volume, omit this parameter. @@ -299 +300 @@ JSON Syntax: -> If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter. +> If you want to restore the replacement volume from a specific snapshot, if you want to restore it to its launch state, or if you want to replace the root volume with a specified volume, omit this parameter. @@ -326,0 +328,6 @@ JSON Syntax: +`--volume-id` (string) + +> The ID of the volume to use as the replacement root volume. The specified volume must be in the same Availability Zone as the instance, must be in the `available` state, and must not be attached to an instance. If the original root volume is encrypted, the specified volume must also be encrypted. +> +> If you want to restore the replacement root volume from a specific snapshot, an AMI, or to its launch state, omit this parameter. + @@ -586 +593 @@ ReplaceRootVolumeTask -> (structure) - * [AWS CLI 2.35.16 Command Reference](../../index.html) » + * [AWS CLI 2.35.19 Command Reference](../../index.html) »