Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created January 7, 2014 01:44
Show Gist options
  • Select an option

  • Save tmtk75/8293397 to your computer and use it in GitHub Desktop.

Select an option

Save tmtk75/8293397 to your computer and use it in GitHub Desktop.
aws ec2 describe-instances \
--filter Name=tag-key,Values=Name \
--filter Name=tag-value,Values=$instance_name \
| jq -r ".[][].Instances[].InstanceId"
@tmtk75

tmtk75 commented Jan 7, 2014

Copy link
Copy Markdown
Author

How to get instance-id with Name tag value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment