Skip to content

Commit

Permalink
fix: elasticsearch v7.8+ uses new ism template api (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkumarsph authored Jul 14, 2023
1 parent ad28998 commit 982be24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/ism/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ No modules.

| Name | Type |
|------|------|
| [opensearch_index_template.this](https://registry.terraform.io/providers/opensearch-project/opensearch/latest/docs/resources/index_template) | resource |
| [opensearch_composable_index_template.this](https://registry.terraform.io/providers/opensearch-project/opensearch/latest/docs/resources/composable_index_template) | resource |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion modules/ism/template/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "opensearch_index_template" "this" {
resource "opensearch_composable_index_template" "this" {
name = var.name
body = var.body
}
2 changes: 1 addition & 1 deletion modules/ism/template/ouputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "id" {
description = "The ID of the index template"
value = opensearch_index_template.this.id
value = opensearch_composable_index_template.this.id
}

0 comments on commit 982be24

Please sign in to comment.