/
get instance id and reboot instance

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
























Related content

Create EC2 instance with AWS console ( web page )
Create EC2 instance with AWS console ( web page )
More like this
0c- AWS create a Key Pairs ( to access the VM)
0c- AWS create a Key Pairs ( to access the VM)
More like this
aws provider: the right way
aws provider: the right way
More like this
AWS: aws cli
AWS: aws cli
More like this
aws cli using --filter #grep
aws cli using --filter #grep
More like this
AWS AMI information
AWS AMI information
More like this