Skip to content

mgajda/aws-etc-hosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generate /etc/hosts for AWS hosts

AWS hosts get unpredictable names, and Valentino Volonghi's script got old, so I updated it to generate local /etc/hosts only.

Install

pip install -r requirements.txt
sudo cp /etc/hosts /etc/hosts.default

And configure your aws CLI with aws configure.

Running

./gen_hosts.py
sudo cp etc_hosts /etc/hosts

License

Original code was published by Valentino without license, maybe someone can find it on AdRoll.com website. As for my contribution - it is public domain here.

About

Generate Mac's /etc/hosts from AWS config

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages