login-taro
generates commandline snipets for connecting to AWS EC2 instance with ssh.
go get -u github.com/cm-kazup0n/login-taro
login-taro --region NAME_OF_REGION
<Value of Name tag> | <ssh command>
With peco, output can be filtered interactively, and filtered output can be eval like below.
`login-taro --region ap-northeast-1 | peco`
eval(login-taro --region ap-northeast-1 | peco)
$login-taro --region ap-northeast-1
windows | ssh -o ProxyCommand='ssh -i ~/.ssh/id-rsa.pem -W %h:%p ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com' -i ~/.ssh/id-rsa.pem ec2-user@ip-YY-YY-YY-YY.ap-northeast-1.compute.internal
bastion | ssh -i ~/.ssh/id-rsa.pem ec2-user@ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com