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
- Host: GitHub
- URL: https://github.com/mgajda/aws-etc-hosts
- Owner: mgajda
- Created: 2017-07-22T18:36:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T14:04:09.000Z (about 5 years ago)
- Last Synced: 2025-06-03T00:05:05.304Z (about 1 year ago)
- Topics: aws, aws-ec2, boto3-script, hosts-file
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.