rebuy-de / aws-nuke

Nuke a whole AWS account and delete all its resources.
https://github.com/ekristen/aws-nuke
MIT License
5.77k stars 724 forks source link

How to filter a resources using 2 property #1171

Closed yashasbc23 closed 2 months ago

yashasbc23 commented 11 months ago

Hello Team,

I am looking to use 2 filter pattern on single resource. Can you help me how to do this. I want to filter IAMRole with tag:Owner and also filter with name. Because some of the IAMRole resource does not have tag:Owner which I wan to keep(Exclude from destroying).

Please let me know if you need more information.

Thanks

ekristen commented 7 months ago

filters are OR together by default, so basically if you specify 2 filters if either one matches, it'll get excluded, currently there is no way to AND filters together.