mgajda / aws-etc-hosts

Generate Mac's /etc/hosts from AWS config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%