get instance id and reboot instance




aws cli need to be logged on first
aws cli configure
> aws configure

AWS Access Key ID [****************K6NQ]:
AWS Secret Access Key [****************XP02]:
Default region name [us-west-2]:
Default output format [table]:
get the Instance id
get Instance id
aws ec2 describe-instances --no-verify | grep InstanceId

or 

 aws ec2 describe-instances --no-verify

reboot the instance
reboot EC2 instance on aws
aws ec2 reboot-instances --instance-ids i-0947d5f8513cff6ed --no-verify