cli icon indicating copy to clipboard operation
cli copied to clipboard

feat: show the resources to the user that would be deleted

Open asalkeld opened this issue 3 years ago • 0 comments

When running "nitric down", first run the pulumi preview to gather the resources that would be deleted then present these to the user to confirm.

from: https://github.com/nitrictech/cli/pull/160#discussion_r822119040

If possible, a better approach might be to show the things being destroyed

"Warning - the following resources will be destroyed:" Type Name Plan

Stack quickstart-dev delete
├─ aws:s3:BucketObject index.html delete
└─ aws:s3:Bucket my-bucket delete

Also see: https://www.pulumi.com/docs/get-started/aws/destroy-stack/

asalkeld avatar Mar 08 '22 23:03 asalkeld