I want to have a cloud custodian policy that marks compute instances for op if they have a label expires-on
and it's set to a date/time
that's past the time of evaluation.
I tried looking through the cloud custodian documentation but I'm struggling to find anything about "label filtering" for GCP instances
Do you know about any documentation that could help me better understand label filtering?
For filtering based on a label, you need to use filter type "value" and as a key, you need to use JSON path:
where VM instance has label
labelkey: labelvalue
More details you can find here: https://cloudcustodian.io/docs/filters.html