Skip to content

Quickly get the address details of ec2 instances

License

Notifications You must be signed in to change notification settings

solarnz/ec2-fzf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ec2-fzf

ec2-fzf is a tool that utilised the fzf fuzzy matcher in order to retrieve the public or private address of an ec2 instance.

GIF

Installation

go get github.com/solarnz/ec2-fzf/cmd/ec2-fzf

Usage

You can pass --private to ec2-fzf, and it will return the private ip address of the instance, rather than the public dns record. This is useful for instances within a VPC.

You can also set --region and pass the ec2 region you would like to list instances in.

You can use ec2-fzf with ssh with ssh $(ec2-fzf --region ap-southeast-2)

You can add filters on to the instances that are listed with the --filters flag. You can define --filters multiple times to filter by more than one value. Valid values are those used in the aws-sdk-go sdk

ec2-fzf --filters tag:realm=test --filters tag:Name=Test

Configuration

You can set the default configuration options in ~/.config/ec2-fzf/config.toml, example

Region = "us-east-1"
Template = "{{index .Tags \"Name\"}}"

About

Quickly get the address details of ec2 instances

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages