Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 870 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 870 Bytes

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