Skip to content

/etc/hosts automation for instances in AWS and GCP

Notifications You must be signed in to change notification settings

damselem/autohosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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