gruntwork-io / cloud-nuke

A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it
https://gruntwork.io/
MIT License
2.81k stars 358 forks source link

Runtime error: invalid memory address or nil pointer dereference #732

Closed TheOutsSeeker closed 4 months ago

TheOutsSeeker commented 4 months ago

Running the latest version of cloud-nuke v0.36.0 with the parameter crashes.

AWS_PROFILE= cloud-nuke inspect-aws --exclude-first-seen, throws in my case the following error message after ~7+ mins.

"Searching eip resources in eu-central-1 (7m12s)ERRO[2024-07-01T15:19:19+01:00] runtime error: invalid memory address or nil pointer dereference binary=cloud-nuke version=v0.36.0"

Tested it on ARM & AMD x86_64 macOS v14.4.1.

Excluding the EIP resource from scans avoids the exception.

AWS_PROFILE= cloud-nuke inspect-aws --exclude-first-seen --exclude-resource-type eip

james03160927 commented 4 months ago

Hi @TheOutsSeeker, I cannot reproduce the same issue on the newest release. Can you try out using the new release? https://github.com/gruntwork-io/cloud-nuke/releases/tag/v0.37.0

TheOutsSeeker commented 4 months ago

Yes, of course - I will get back to you.

TheOutsSeeker commented 4 months ago

The binaries aren't available here: https://github.com/gruntwork-io/cloud-nuke/releases/tag/v0.37.0 for download yet

james03160927 commented 4 months ago

Can you try with this one? https://github.com/gruntwork-io/cloud-nuke/releases/tag/v0.37.1

TheOutsSeeker commented 4 months ago

Thanks. With the latest version I can't reproduce the issue anymore either.

TheOutsSeeker commented 4 months ago

Thanks.