An open API service indexing awesome lists of open source software.

https://github.com/mgajda/aws-etc-hosts

Generate Mac's /etc/hosts from AWS config
https://github.com/mgajda/aws-etc-hosts

aws aws-ec2 boto3-script hosts-file

Last synced: 3 months ago
JSON representation

Generate Mac's /etc/hosts from AWS config

Awesome Lists containing this project

README

          

# Generate `/etc/hosts` for AWS hosts

AWS hosts get unpredictable names, and [Valentino Volonghi's](https://twitter.com/dialtone_) script got old,
so I updated it to generate local `/etc/hosts` only.

# Install

```bash
pip install -r requirements.txt
sudo cp /etc/hosts /etc/hosts.default
```
And [configure your `aws` CLI](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html)
with `aws configure`.

## Running

```bash
./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.