Open jmaitrehenry opened 8 months ago
[Untriage] Hey @jmaitrehenry thanks for reporting, looks to me like this is a similar issue https://github.com/opensearch-project/terraform-provider-opensearch/issues/71, if you are open can you please contribute and fix this bug? Thank you Adding @rblcoder
@prudhvigodithi When I try to call
mapping, err := osClient.GetMapping().Index(index).Do(ctx)
err shows elastic: Error 400 (Bad Request)
Variable index contains the name of the index.
My issue for this was closed referencing #71 . What are the chances of getting somebody on the core team to fix this? I don't know that the community has any PR work ready for fixing it, and it is fairly important to the usability of the provider.
Hey @xsnrg when you mention core team are you referencing to the OpenSearch core engine and should a fix happen in core engine or can a fix be part of the terraform provider ? Adding @bbarani @phillbaker
@prudhvigodithi - a good question. My understanding is the fix is needed in the provider. I was referring to the primary contributors to the terraform-provider-opensearch
project, and not to the actual Opensearch core engine team.
There are individuals here that are more familiar with the provider code, such as @bbarani and @phillbaker . They could probably knock this out fairly quickly if they have the time, vs. waiting for a community member to provide a PR. My hope is somebody close to the provider code could take a look and see if it is a quick win.
What is the bug?
When I attempt to import the opensearch_index resource with mapping configured, it doesn't get imported into the state
How can one reproduce the bug?
Create an index with a mapping configuration:
Remove it from the state and import it back:
The new resource state doesn't have the mapping configuration:
What is the expected behavior?
The mapping is imported.
What is your host/environment?
Provider:
Terraform: