elastic / terraform-provider-elasticstack

Terraform provider for Elastic Stack
https://registry.terraform.io/providers/elastic/elasticstack/latest/docs
Apache License 2.0
162 stars 85 forks source link

[Feature] Add functionality to create reroute processor #678

Open baerchen110 opened 1 month ago

baerchen110 commented 1 month ago

Is your feature request related to a problem? Please describe. Volvo cars is suffering from the feature disparity between Terreform provider and Elastic API, especially on the possibility to create reroute processor

Describe the resource you would like to have implemented. Reroute processor

Describe the solution you'd like Be able to use create reroute processor via the Elasticstack Terraform provider

Describe alternatives you've considered Direct use of the API is possible, either direct or via Ansible, etc, however it is a break in the configuration flow and doesn't allow state management.

Additional context Volvo cars is heavily using Terraform provider for their Observability as a Service on Elastic Cloud.

tobio commented 1 month ago

Be able to use create reroute processor via the Elasticstack Terraform provider

@baerchen110 whilst there's no reroute data source, IIUC you should be able directly supply the raw json for the reroute processor (like the first example in the docs). Maybe I'm missing something?

We should definitely add a reroute data source to provide a better experience here, but it should be possible to use the processor with the provider today.