An open API service indexing awesome lists of open source software.

https://github.com/christianvozar/aws-ssh

SSH inventory config generation for Amazon Web Services.
https://github.com/christianvozar/aws-ssh

amazon-web-services ansible go inventory ssh

Last synced: 2 months ago
JSON representation

SSH inventory config generation for Amazon Web Services.

Awesome Lists containing this project

README

          

# aws-ssh

Generate inventory of SSH connections for Amazon Web Services.

# Installation

Executing will produce entries for your SSH config file for all running instances on EC2 for the given tag. This is easily piped into the SSH config file directly. When combined with auto-completion and a cron-entry you can auto-complete SSH for your instances with ease.

`$ AWS_ACCESS_KEY=FOIJEWOEIJDFUHIJ AWS_SECRET_KEY=joasd8jf8a9sjdfaj30jfiojf PRIVATE=true STRICT=false ./aws-ssh > ~/.ssh/config`

### macOS Users

For auto-complete (tab) to work you will need to add a line similar to this to your /etc/bashrc file.

`$ complete -o default -o nospace -W "$(grep -i -e '^host ' ~/.ssh/config | awk '{print substr($0, index($0,$2))}' ORS=' ')" ssh scp sftp`