ec2-reboot-instances
Description
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. |
Syntax
ec2-reboot-instances
instance_id
[instance_id
...]
Options
Name | Description | Required |
---|---|---|
|
One or more instance IDs. Type: String Default: None Example: i-3ea74257 |
Yes |
Output
The command returns a table that contains the following information:
-
This command displays no output on success
Amazon EC2 displays errors on stderr.
Examples
Example Request
This example reboots an instance.
PROMPT>ec2-reboot-instances &InstanceId.1=i-3ea74257