bonclay7 / aws-amicleaner

Cleanup your old unused ami and related snapshots
MIT License
362 stars 132 forks source link

ability to only select tags that include value #116

Open ramonskie opened 1 year ago

ramonskie commented 1 year ago

when having images with

tag:
 - foo: bar
 - name: test
 - published: false
tag:
 - foo: bar
 - name: test_test
 - published: false

i want to be able to select only the ami's with name:test and published:false as i cannot be sure of if there are amis with the tag name:example i cannot mis/abuse the --excluded-mapping-values test_test for example.

is there an ability to just say i want only to remove the one containing 2 tags and there corosponding values. like --include-mapping-values name=test, published:false

or why not be able to select which group you want to delete. as you already group them anyways