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

global filter for resources.

Open agarossi opened this issue 4 years ago • 3 comments

is it possible to filter for any resource that contain in the name "DONOTDELETE" or something similar? same for tags?

also what is the syntax for filtering a S3 bucket which name contain a string?

filters: S3Bucket: - type: contain value: "DONOTDELETE"

correct?

agarossi avatar Jan 07 '20 16:01 agarossi

Hello @agarossi. You have to individually filter each resource and the capabilities of filtering a resource depends on their respective properties. You can see those properties when doing a dry run on an account.

svenwltr avatar Jan 16 '20 09:01 svenwltr

+1 Would be nice to be able to define a generic filter that would apply to all resoures. This filter, of course would have to include every applicable property. Would be a much more concise way to express it and would apply to future resources. We use naming and tagging convention to differentiate resources that are part of the account's baseline configuration, that would not want to remove. Other uses would be to scope the deletion to a project.

Also for cases like: https://github.com/rebuy-de/aws-nuke/issues/431#issuecomment-566815265

dxciberaws avatar Jan 17 '20 12:01 dxciberaws

Came here to ask and suggest the same. There should be a master Tag for all resources. "One Tag to Filter Them All"

chris2fer avatar Jun 09 '22 18:06 chris2fer