Closed greg0ire closed 7 months ago
@greg0ire
Oh you're right. It seems we should change the type of params
to either JSON string
or map
to fix the problem and be more flexible.
@greg0ire
Instead of changing type of params
, I introduced new field params_json
for backward compatibility.
https://github.com/k-yomo/terraform-provider-algolia/pull/210
You can pass json or use terraform map. https://github.com/k-yomo/terraform-provider-algolia/blob/main/examples/resources/algolia_rule/resource.tf
Thank you! Will try that next week!
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Copy-paste your Terraform configurations here
Expected Behavior
The docs say this about
params
:facetFilters
is definitely a valid search parameter: https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/A rule looking like this should be terraformed:
Actual Behavior
I'm getting an error saying
Steps to Reproduce
Run
terraform plan
with the aboveImportant Factoids
None
References
None