A CLI tool that retrieve the EC2 instance ID of specified instance's Name tag.
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
Binaries are available from Github Releases.
$ brew install thaim/tap/ec2id
$ go install github.com/thaim/ec2id@main
MIT