aws-nuke
aws-nuke copied to clipboard
global filter for resources.
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?
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.
+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
Came here to ask and suggest the same. There should be a master Tag for all resources. "One Tag to Filter Them All"