ghost
ghost copied to clipboard
Allow to ssh to an arbitrary instance
If a terraform.tfstate file contains instances, we can extract their tags and allow to connect:
ghost put -t ssh consul-server ssh_key_path=~/.ssh/mykey discover=terraform tag=Name:consul
Which will arbitrarily connect to an instance with the tag key "Name" and the tag value "consul"
The same can be done by using aws directly. We can can then add more clouds.