Skip to content

Instantly share code, notes, and snippets.

@yoyama
Created August 2, 2024 02:44
Show Gist options
  • Save yoyama/982b951d83f8d8721207d83a412faa9f to your computer and use it in GitHub Desktop.
Save yoyama/982b951d83f8d8721207d83a412faa9f to your computer and use it in GitHub Desktop.
aws cli memo
aws --profile <profile> --region <region> ec2 describe-instances \
    --filters "Name=tag-key,Values=Name" "Name=tag-value,Values=<name>" \
| jq '.Reservations[] | .Instances[] | .InstanceId' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment