I’m trying to write a new provider that can help provide other providers with additional information populated from an API. So it’s only going to need the data source and the ability to filter on calls to that api. I have not seen any examples or references in the godoc to using filters? Can someone please help?
For example if someone had this HCL
data "us_states" "arizona" {
filter {
name = "arizona"
}
}
I imagine this could be added to the Read DataSource interface function but anything that signature passes in doesn’t seem to have any reference to filters?
It sounds like you maybe believe “filters” to be a core Terraform concept, perhaps because you have seen something similar in other existing providers.
This is not the case - whatever example you are thinking of, that’s just some custom behaviour implemented by the implementors of whatever provider you have observed it in.