phillbaker / terraform-provider-elasticsearch

An elasticsearch provider for terraform
https://registry.terraform.io/providers/phillbaker/elasticsearch
Mozilla Public License 2.0
305 stars 134 forks source link

"elasticsearch_index_template" Error: Malformed version: OpenSearch_2.3 #337

Closed ashraf133 closed 1 year ago

ashraf133 commented 1 year ago

Hello,

│ Error: Malformed version: OpenSearch_2.3

Terraform = 1.2.5 terraform-provider-elasticsearch = 2.0.7 aws opensearch = 2.3


  ~ resource "elasticsearch_index_template" "vpc-flowlogs-v2" {
      ~ body = jsonencode(
          ~ {
              + template       = {
                  + mappings = {
                      + properties = {
                          + cw_timestamp = {
                              + format = "epoch_second||epoch_millis"
                              + type   = "date"
                            }
                          + end          = {
                              + format = "epoch_second||epoch_millis"
                              + type   = "date"
                            }
                          + start        = {
                              + format = "epoch_second||epoch_millis"
                              + type   = "date"
                            }
                        }
                    }
                }
                # (1 unchanged element hidden)
            }
        )```
ashraf133 commented 1 year ago

It works while removing version from provider

phillbaker commented 1 year ago

This provider does not support Opensearch 2.x, please see https://github.com/phillbaker/terraform-provider-elasticsearch/issues/298#issuecomment-1327909365