Skip to content

Instantly share code, notes, and snippets.

@shikloshi
Created July 29, 2019 07:28
Show Gist options
  • Select an option

  • Save shikloshi/261f362bbbf253a4b40a1ca553094bc7 to your computer and use it in GitHub Desktop.

Select an option

Save shikloshi/261f362bbbf253a4b40a1ca553094bc7 to your computer and use it in GitHub Desktop.
# Get InstanceId from specific describe-instances with role tag
aws ec2 describe-instances --filter="Name=tag:role,Values=blog" | jq '.Reservations[0].Instances[] | {"InstanceId": .InstanceId}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment