Skip to content
/ ec2id Public

A CLI tool that retrieve the EC2 instance ID of specified instance's Name tag

License

Notifications You must be signed in to change notification settings

thaim/ec2id

Repository files navigation

ec2id

test codecov

A CLI tool that retrieve the EC2 instance ID of specified instance's Name tag.

Usage

Configure your AWS credentials, and then run as follows

# retrieve the latest launched instance id
$ ec2id
i-0691a69ff0914bae1

You can specify the instnace's Name tag

# retrieve the instance id with tag:Name = "sample"
$ ec2id sample
i-0acd9f178c934caea

Install

Install from binary

Binaries are available from Github Releases.

Install from homebrew

$ brew install thaim/tap/ec2id

Install from go install

$ go install github.com/thaim/ec2id@main

LICENSE

MIT