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

Folders and files

NameName
Last commit message
Last commit date
Oct 23, 2023
Jan 2, 2023
Oct 23, 2023
Jan 21, 2023
Dec 29, 2022
Jan 21, 2023
Jan 14, 2023
Jan 14, 2023
Oct 18, 2023
Oct 18, 2023
Apr 18, 2024
Apr 18, 2024
Jan 13, 2023
Jan 15, 2023
Jan 4, 2023

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