opensearch-project / terraform-provider-opensearch

https://registry.terraform.io/providers/opensearch-project/opensearch
Apache License 2.0
74 stars 57 forks source link

[BUG]Can't create opensearch_index_template #63

Open Wyifei opened 1 year ago

Wyifei commented 1 year ago

What is the bug?

A clear and concise description of the bug.

How can one reproduce the bug?

Steps to reproduce the behavior.

tf as below: resource "opensearch_index_template" "template_1" { name = "test" body = <<EOF { "index_patterns": [ "logs*" ], "template": { "settings": { "number_of_shards": 2, "number_of_replicas": 2 }, "mappings": { "properties": {} } } } EOF }

terraform could apply the change, but can't find the corresponding template in OpenSearch-Index Management-Template menu.

What is the expected behavior?

A clear and concise description of what you expected to happen.

What is your host/environment?

Operating system, version.

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

prudhvigodithi commented 1 year ago

Hey @Wyifei, I have a PR for provider 2.x support https://github.com/opensearch-project/terraform-provider-opensearch/pull/62, I made some code changes related to index templates, is there a way you can test this please? Thank you