terraform-provider-elasticstack icon indicating copy to clipboard operation
terraform-provider-elasticstack copied to clipboard

[Feature] Add retries and timeouts for kibana/fleet resources

Open tehbooom opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. When making multiple requests or very large requests to the Kibana API you will sometimes receive a 503 timeout since Kibana is single threaded. You must wait for the Kibana API to be available before each request

Describe the resource you would like to have implemented. For all Fleet and Kibana resources add the option for retries and timeouts for each resource or globally for all resources.

Describe the solution you'd like Using terraform's retries and timeout we should be able to wait for the kibana API to be available as it takes no longer than 15-30 seconds for it finish processing what it needs to from my testing.

Describe alternatives you've considered Set parallelism very low to maybe 2-3 might help. I find it more stable to add a depends_on when hitting the Kibana API. Specifically for when I'm creating the Agent Policies and Defend Integrations.

Additional context Add any other context or screenshots about the feature request here.

tehbooom avatar Sep 19 '24 12:09 tehbooom