aws-nuke
aws-nuke copied to clipboard
[rf] remove plans
Overview
The concept is to add functionality similar to terraform, if you provide an output flag, and do not supply the no dry run, you can create a binary plan file that has all the resources to remove. You could then review this either by the initial output of the tool or by using a command like aws-nuke show <plan-file>. Once you review you can provide it to the run command along with no dry run and aws-nuke would skip doing another discovery phase.
Considerations
- Resources could change between plans
- We'd need to store resource information along with basic account information to ensure on subsequent plan the same account is being targeted
I wonder if some tool, maybe CLI compatible with aws-nuke, could borrow from OpenTofu, or Terraform, for details like:
- plan file serialization
- use of Terraform or OpenTofu plugins
- ability to abort a partial apply and still save progress
Being able to write an actual Terraform-compatible plan would allow using tools to visualise plans.