Skip to content

Instantly share code, notes, and snippets.

@srkiNZ84
Last active May 23, 2021 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srkiNZ84/f7c9afbf3d0c570a3b368ffbf0ce71f5 to your computer and use it in GitHub Desktop.
Save srkiNZ84/f7c9afbf3d0c570a3b368ffbf0ce71f5 to your computer and use it in GitHub Desktop.

Bash Snippets

Find AWS EC2 instance by id

aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment