Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
![]() | Note |
|---|---|
If a Linux/UNIX instance does not cleanly shut down within four minutes, Amazon EC2 will perform a hard reboot. |
ec2-reboot-instances
instance_id [instance_id
...]
| Name | Description | Required |
|---|---|---|
|
|
One or more instance IDs. Type: String Default: None Example: i-3ea74257 |
Yes |
The command returns a table that contains the following information:
This command displays no output on success
Amazon EC2 displays errors on stderr.
This example reboots an instance.
PROMPT>ec2-reboot-instances &InstanceId.i-28a64341