Instances – AWS CLI

  1. aws ec2 describe-instances | jq -cr ‘.Reservations[].Instances[0]|[.InstanceId,.InstanceType,.KeyName,.State,.Tags]’ # list instances
  2. aws ec2 describe-instance-status –instance-id <INST-ID> | jq ‘ .InstanceStatuses | .[].InstanceState.Name’ # show instance
  3. aws ec2 start-instances –instance-id <INST-ID> # start instance

Leave a Reply

Your email address will not be published. Required fields are marked *