Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/percolate/ec2-security-groups-dumper
Dump your EC2 Security Groups as a CSV or JSON file
https://github.com/percolate/ec2-security-groups-dumper
Last synced: 3 months ago
JSON representation
Dump your EC2 Security Groups as a CSV or JSON file
- Host: GitHub
- URL: https://github.com/percolate/ec2-security-groups-dumper
- Owner: percolate
- License: gpl-3.0
- Created: 2015-03-14T18:59:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T17:40:09.000Z (over 1 year ago)
- Last Synced: 2024-07-22T09:10:55.411Z (4 months ago)
- Language: Python
- Size: 50.8 KB
- Stars: 70
- Watchers: 10
- Forks: 40
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ec2-security-groups-dumper
[![Circle CI](https://circleci.com/gh/percolate/ec2-security-groups-dumper.svg?style=shield)](https://circleci.com/gh/percolate/ec2-security-groups-dumper)
Dump your EC2 Security Groups as a CSV or JSON file.
Makes it possible to maintain your firewall rules in git.
## Quick Start
```bash
$ ec2-security-groups-dumper --help
ec2-security-groups-dumperDumps the EC2 firewall rules as a json or csv output. Redirect the output to a
file to dump it to this file.
Useful to keep track of the firewall changes in git.
Can also be used as a backup in case you lose some rules on EC2.Usage:
ec2-security-groups-dumper --json [--region=] [--profile=] [--vpc=]
ec2-security-groups-dumper --csv [--region=] [--profile=] [--vpc=]
ec2-security-groups-dumper (-h | --help)Options:
-h --help Show this screen.Examples:
ec2-security-groups-dumper --csv > path/to/ec2-security-groups.csv
ec2-security-groups-dumper --json > path/to/your-firewall-backup.json
```## Install
```bash
pip install ec2-security-groups-dumper
```## See Also
- [IAMer](https://github.com/percolate/iamer) to dump your IAM rules as INI and
JSON text files.