hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.18k forks source link

[Enhancement]: Support CloudSearch Suggesters #35351

Open jwong-dayspring opened 10 months ago

jwong-dayspring commented 10 months ago

Description

AWS CloudSearch includes a feature to provide autocomplete suggestions. This requires defining "suggesters" in the CloudSearch search domain. This feature has been available since 2013 but configuring this feature is currently not possible via Terraform.

I propose adding a suggester block to the aws_cloudsearch_domain resource, similar to the existing index_field block.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

suggester {
    name = "mysuggester"
    source_field = "title"
    fuzzy_matching = "low"
    sort_expression = "year"
}

suggester {
    name = "anothersuggester"
    source_field = "actor_name"
}

References

https://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DefineSuggester.html

Would you like to implement a fix?

None

github-actions[bot] commented 10 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

i-ate-a-vm commented 8 months ago

Going to take a stab at adding this feature because we need it as well. I've started work here: https://github.com/i-ate-a-vm/terraform-provider-aws/tree/f-cloudsearch-suggesters/internal/service/cloudsearch

So far all I've done is define the schema and validations for fields, so plenty of work left to be done on it.