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

[rf] remove plans

Open ekristen opened this issue 1 year ago • 2 comments
trafficstars

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

ekristen avatar Feb 23 '24 02:02 ekristen

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

sftim avatar Mar 25 '25 11:03 sftim

Being able to write an actual Terraform-compatible plan would allow using tools to visualise plans.

sftim avatar Mar 25 '25 11:03 sftim