Another way we could design this is to take the aws amis data source approach (docs). Since the underlying XO api allows us to provide any key, value pairs we want, we could allow a user to filter by any field they want even if we didn't identify their use case ahead of time.
Currently, filtering is mostly done on the client side, without taking advantage of XO api's server side filtering capabilities.
Add server side filtering by any key - value pair for data sources.
_Originally posted by @ddelnano in https://github.com/terra-farm/terraform-provider-xenorchestra/pull/161#discussion_r667262763_