Skip to content

Instantly share code, notes, and snippets.

@v0rts
Last active June 10, 2021 00:16
Show Gist options
  • Save v0rts/4e23e2daef5547b38b9a11ce70ed7a24 to your computer and use it in GitHub Desktop.
Save v0rts/4e23e2daef5547b38b9a11ce70ed7a24 to your computer and use it in GitHub Desktop.
aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" --query "Reservations[*].Instances[*].[PrivateIpAddress, Tags[?Key=='Name'].Value|[0]]" --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment