Dmitry Onishchenko
Dmitry Onishchenko
If EnterpriseSearch size is set to 0, its status switches to "stopped". From the provider's perspective it's equivalent to not having EnterpriseSearch at all. This behavior can be addressed by...
@Kushmaro , I guess this requires adding a dedicated resource to the provider.
@copilot , create test to reproduce the issue, e.g. in `/internal/kibana/data_view/acc_test.go`
@copilot , a possible fix is to add `Computed` to `count` attribute in https://github.com/elastic/terraform-provider-elasticstack/blob/1ae6c3e8129055bd99d13c9db92449169c427275/internal/kibana/data_view/schema.go#L99. Also, maybe `Optional` can be removed.
IIRC, the provider had some retry logic for create/update which was implemented using SDKv2 helpers but it was removed when we switched to Framework. IMO implementing retry from outside can...
> Another option here might be to check for a pending plan in read, then wait for it to complete (like we do in create/update) before actually reading the deployment....