Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 415 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 415 Bytes

autohosts

Uses the credentials in ~/.aws/credentials and ~/.config/gcloud to pull the hostnames from all instances in AWS and GCP.

Installation

You can download a binary for your platform from the Releases section.

Usage

Prints hostnames to STDOUT:

autohosts all

Updates /etc/hosts with hostnames:

autohosts aws -o /etc/hosts