CmdID / aws / aws lightsail
aws lightsail reboot-instance
Restarts a specific instance. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To reboot an instance
The following reboot-instance example reboots the specified instance.
aws lightsail reboot-instance --instance-name MEAN-1Identify--instance-nameThe name of the instance to reboot.Its output
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "MEAN-1",
"resourceType": "Instance",
"createdAt": 1571694445.49,
"location": {
"availabilityZone": "us-west-2a",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationDetails": "",
"operationType": "RebootInstance",
"status": "Succeeded",
"statusChangedAt": 1571694445.49
}
]
}For more information, see Start, stop, or reboot your Lightsail instance in the Amazon Lightsail User Guide.
Options
--instance-nameThe name of the instance to reboot.