genevieve / leftovers

Go cli & library for cleaning up orphaned IAAS resources.
Apache License 2.0
150 stars 22 forks source link

Filter aws elb/elbv2 load balancers by their associated tags. #100

Closed genevieve closed 4 years ago

genevieve commented 4 years ago

current behavior

If the load balancer name does not contain the filter, leftovers won't try to delete it.

expected behavior

If the load balancer name does not contain the filter but it has associated tags that do contain the filter, leftovers should try to delete it.

extra credit?

If the lb is attached to an network interface that contains the filter, should the lb automatically be deleted?

genevieve commented 4 years ago

When creating the Name for the LB in the leftovers system include the tags.

Where to fix:

Example of how to: