How to check Ec2 instance state name

AWS different Instance state name:
pending
running
shutting-down
terminated
stopping
stopped


Check Ec2 instance State name 
aws ec2 describe-instances --instance-ids  i-f7ed6474 --output json | jq -r .Reservations[].Instances[].State.Name

Post a Comment

Mới hơn Cũ hơn