I am one of those people who function better by writing things down. One day, I realized that most of my notes don’t have to be private, so here they are - my second brain. Be warned that, if you stumble upon something here that doesn’t make sense to you, it isn’t meant to!
Describe AWS EC2 instances
Given an instance-id alone: aws ec2 describe-instances --instance-ids i-001fa90ce5949539f i-0ffbee16785c3cab4 With filters: aws ec2 describe-instances \ --filters "Name=instance-type,Values=m5d.metal" "Name=instance-state-name,Values=running" "Name=image-id,Values=ami-foo" \ --no-paginate \ Other filters: "Name=instance-id,Values=i-0bf18c34a79da1027" Can also add the following: | jq -r ".Reservations|.[]|.Instances|.[]|.PublicIpAddress" | jq -r ".Reservations|.[]|.Instances|.[]|.Placement.AvailabilityZone" Resources: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html