Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dazecoop/839a147ab01c0bbb62ba27533c0de365 to your computer and use it in GitHub Desktop.
Save dazecoop/839a147ab01c0bbb62ba27533c0de365 to your computer and use it in GitHub Desktop.
AWS CLI Get EC2 instance ID from instance name
aws ec2 describe-instances --filters 'Name=tag:Name,Values=NAME_GOES_HERE' --query 'Reservations[].Instances[].[InstanceId][0][0]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment