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