Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Created December 2, 2019 17:02
Show Gist options
  • Save amcginlay/984652476873badcc9aedd1995168fe5 to your computer and use it in GitHub Desktop.
Save amcginlay/984652476873badcc9aedd1995168fe5 to your computer and use it in GitHub Desktop.
command for listing all the tags in current EC2 instance
aws ec2 describe-tags \
--filters "Name=resource-id,Values=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment