aws-nuke icon indicating copy to clipboard operation
aws-nuke copied to clipboard

[idea] structured logs/report

Open so0k opened this issue 10 months ago • 6 comments

Rather than rely on string parsing such as this tool oijkn/aws-nuke-exporter, aws-nuke could have an option to output structured logs (--output or --json flag).

so0k avatar Apr 25 '24 12:04 so0k

assuming it wouldn't be too hard to add it into here: https://github.com/ekristen/aws-nuke/blob/main/pkg/commands/global/global.go

let me know if you'd like me to give it a shot and open a PR for this

so0k avatar Apr 25 '24 12:04 so0k

@so0k this was on my backlog of things I wanted to do. The changes would have to start in libnuke, but wouldn't be super hard. JSON is a given format, but what are you wanting the output to have? Do you have an example?

I'm always down for contributors, but this will require to PRs on two repos to make happen, please check out the contributing docs. I'm following semantic commits, require all commits to be signed. The goal here is to setup some good guidance to allow others to contribute and get things merged quick and reliably instead of them getting stale.

With that in mind, I like this idea, I can probably get it done by the weekend.

ekristen avatar Apr 25 '24 14:04 ekristen

Sounds good @ekristen - I definitely won't have time soon to work on this

vincenthsh avatar Apr 27 '24 02:04 vincenthsh

This is a little more difficult to implement. Requires several changes, but I like it and I've been working on it.

ekristen avatar Jun 05 '24 13:06 ekristen

This would be awesome to have as well. Was seeing if an option was available then saw this! +1 from me

kieran-lowe avatar Sep 25 '24 10:09 kieran-lowe

This is a work in progress .. https://github.com/ekristen/aws-nuke/pull/368

ekristen avatar Oct 06 '24 05:10 ekristen