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

[BUG] 2.0 beta cannot import index template - not found - still happening in 2.2.1

Open xsnrg opened this issue 1 year ago • 7 comments

What is the bug?

terraform cannot import index template - not found

How can one reproduce the bug?

Create an index template in some way. In this case I create an index template with an older provider. Switch to the new provider and try to import, and it is not able to find the index.

What is the expected behavior?

The index template should import from the existing configuration by name

What is your host/environment?

MacOS for the terraform client, Server cluster is AWS Opensearch 2.7

Do you have any screenshots?

GET _cat/templates - shows the templates GET _index_template/* - does not show templates

Do you have any additional context?

The cluster is running in compatibility mode, and the index template API may have changed between the provider that created the template and the one trying to import it. The console shows the index template though, so the new provider should be able to find it and import it.

xsnrg avatar Aug 14 '23 12:08 xsnrg