AWS Nuke Exporter
Hit the Star! ⭐
If you find this repository useful, please consider giving it a star. Your support is greatly appreciated! 🙏
Description
AWS Nuke Exporter is a Python tool designed to parse and export the output logs of the aws-nuke command into more structured and readable formats: JSON or CSV. This tool simplifies the process of analyzing and storing the results generated by AWS Nuke, making it easier for users to review and track the resources managed by AWS Nuke.
Features
- Multiple Output Formats: Supports exporting data into JSON or CSV formats.
- Detailed Parsing: Extracts detailed information from the AWS Nuke logs, including resource types, IDs, regions, and additional details.
- Customizable Export Paths: Allows users to specify custom paths for the exported data.
Requirements
- Python 3
- AWS CLI (for
aws-nukecommand execution)
Installation
From PyPI
You can install aws-nuke-exporter directly from PyPI:
pip install aws-nuke-exporter
This command will install the latest version of the aws-nuke-exporter package along with all necessary dependencies.
From Source
Alternatively, you can clone the repository and install it manually:
git clone https://github.com/oijkn/aws-nuke-exporter.git
cd aws-nuke-exporter
python setup.py install
Usage
After installation, you can use aws-nuke-exporter from the command line:
aws-nuke-exporter <path-to-aws-nuke-output> -f <format> -d <destination-path>
Or alternatively, build and use the Docker image. To build the image:
docker build -t aws-nuke-exporter .
To use the docker image run it as follows:
docker run docker run --rm -v $PWD/:/data <image_name> /data/<aws-nuke-output_file> -d /data/<exported_file>
Arguments
path-to-aws-nuke-output: The file path where AWS Nuke output is stored.-f, --format [json|csv]: The output format. Choose between JSON and CSV (default: JSON).-d, --destination: The path where the exported file will be saved (optional).-q, --quiet: Run in quiet mode, no logs will be printed to stdout (default: False).-v, --version: Prints the version of the tool.
Examples
Export AWS Nuke output to JSON:
aws-nuke-exporter output.log -f json
Export AWS Nuke output to CSV with a custom destination:
aws-nuke-exporter output.log -f csv -d /path/to/export.csv
Run the docker image, passing in the current directory and exporting as JSON to a file named 'export.json':
docker run --rm -v $PWD/:/data nuke-export /data/aws-nuke-output.txt -d /data/export.json
Contributing
Contributions to the AWS Nuke Exporter are welcome. Please ensure that your code adheres to the existing style and that all tests pass.
License
This project is licensed under the GNU General Public License (GPL).
Contact
For any questions or feedback, please open an issue on GitHub.
Metadata
Release files for aws-nuke-exporter 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws-nuke-exporter-1.0.4.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_nuke_exporter-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.9 kB
Release files / aws-nuke-exporter-1.0.4.tar.gz
| Download URL | aws-nuke-exporter-1.0.4.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e66ed61cb47c7a9e6cce4ca22178112953b6f0a1c1bced033ca4ce5225dda51
|
|
BLAKE2b-256 checksum How to use checksums |
6712eb72021b05849f78a96a9fbf1d1de757975b24ee502e0698f77a40437735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Release files / aws_nuke_exporter-1.0.4-py3-none-any.whl
| Download URL | aws_nuke_exporter-1.0.4-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79681f541230263ecb18a1cec748f90b34286630d2d5e9df36e8d2bee02014ee
|
|
BLAKE2b-256 checksum How to use checksums |
42a051afd0d16ae4bbabdfb9d977670462490778d9f663e82cb7510fc74da385
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|