FZF selector for cloud instances
Project description
FZF Cloud Select
Purpose
We have to jump between nodes quickly. There is a list of cloud accounts. Each account has multiple regions. Some nodes are publicity available, some of them not. Dozen of nodes sit behind bastion hosts. And few of them sit behind a group of jump points. And they all have different SSH keys.
There is a ~/.ssh/config, but it is not enough because of the dynamic nature of the cloud. It is too clumsy. It is not suitable for cases when IP addresses are changing instantly, and instances are creating and destroying in minutes.
I tried to structure that hell with shell scripts, but the shell is not enough. I believe that tools like C/C++/Java/Node.JS/Go?/Rust are too heavy for this case. Python is the exact thing. I like to have a dynamic and lightweight solution. Cloud Select is fast enough to go through thousands of nodes. Maybe if my scope will be higher, then I'll create something other.
Implementation
CloudSelect retrieves node list from the cloud, pass that list to FZF, add some useful information to selected nodes (like jump hosts, sudo -i
command, etc...) and returns JSON dictionary that could be used by other programs. CloudSelect is a team player in a shell environment. We can automatically open multiple interactive SSH sessions and provide passwords to sudo -i
under TMUX environment. It is valuable. There are a lot of questions on StackOverflow how to do this but no answers. This tool is the answer.
License
MIT © Alexey Aksenov et al
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cloudselect-19.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa64843af430ba2e98fe5512dd5ebbb27019ce9863735d3b4f588573c0ffdc5 |
|
MD5 | d049e84e965d00ad6fb919db58b445d0 |
|
BLAKE2b-256 | 832fd6c23c7a7649dbd83df93ea0c8853f02558c3dbc143194755e2c0b265275 |