Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support index creation query parameters #242

Closed
danielharada opened this issue Jan 10, 2023 · 0 comments · Fixed by #244
Closed

[Feature] Support index creation query parameters #242

danielharada opened this issue Jan 10, 2023 · 0 comments · Fixed by #244
Labels
enhancement New feature or request

Comments

@danielharada
Copy link

Is your feature request related to a problem? Please describe.
Currently there is no way to set query parameter options when creating an index

Describe the resource you would like to have implemented.
Resource
elasticstack_elasticsearch_index: https://registry.terraform.io/providers/elastic/elasticstack/latest/docs/resources/elasticsearch_index

ES API
Create index API: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-create-index.html

Describe the solution you'd like
Make available in the Terraform resource the query parameter options for the API: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-create-index.html#indices-create-api-query-params

The parameters timeout, master_timeout, and include_type_name cannot be set through index settings, and so are currently inaccessible in Terraform.

Describe alternatives you've considered
Since the majority of the query parameters cannot be defined by index settings, to use them you must invoke the ES API directly instead of using the Terraform provider resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant