How to Reboot an EC2 Instance

Login to AWS Management Console and navigate to EC2 dashboard. Search for the instance that you would like to reboot and right click on the instance. Select ‘Reboot’ under ‘Instance State’.

To reboot an EC2 Instance from AWS CLI, run the following command where INSTANCEID is the instance id of the EC2 Instance.

aws ec2 reboot-instances --instance-ids INSTANCEID

Below is the command to reboot multiple instances using AWS CLI.

aws ec2 reboot-instances --instance-ids INSTANCEID1 INSTANCEID2 INSTANCEID3

See also  How to move table from one schema to another in Redshift