Skip to main content

A tool for exporting aws-nuke logs in JSON or CSV formats.

Project description

AWS Nuke Exporter

Hit the Star! :star:

If you find this repository useful, please consider giving it a star. Your support is greatly appreciated! :pray:

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-nuke command 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>

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

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.

TODO:

  • Add Dockerfile

docker run --rm -v ./:/data test /data/aws-nuke-output.txt -d /data/export.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-nuke-exporter-1.0.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_nuke_exporter-1.0.2-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file aws-nuke-exporter-1.0.2.tar.gz.

File metadata

  • Download URL: aws-nuke-exporter-1.0.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for aws-nuke-exporter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 627be4c828d8587b236110797a39086d78f5bf0f594f2e23eecadecfa3e3eca4
MD5 be37d19320ff8d73ad959d5103924a84
BLAKE2b-256 93f3e51d178902b9ca18fe5b504578d7a7ffcf1476f0a890526f5e8724ad64e8

See more details on using hashes here.

File details

Details for the file aws_nuke_exporter-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_nuke_exporter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3894553a94ed5fbfbd5e34b54400db0f0cb1aa5749399593fd370d8d1a4b49a4
MD5 bdb1cfa03f7f3e47f1fe062e9a708efc
BLAKE2b-256 086a9f0942655076150c9368f197bf197d03ceb4a45cc57afb61c73bf0a48041

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page