Is there a provider to build index patterns in Kibana?

Do you have any idea, if there is any terraform provider to build index patterns in kibana?

I tried some providers like phillbaker, elasticsearch but they do not seem to work properly.
Everytime I use the provider and resource, I get an error:

Error: Argument url is not set

Though I provide the url argument inside the provider block like this:

provider "elasticsearch" {
  url = "http://127.0.0.1:9200"
}
phillbaker provider https://registry.terraform.io/providers/phillbaker/elasticsearch/latest/docs

This is the resource block to create index pattern ( took it from the provider doc )

resource "elasticsearch_kibana_object" "test_index_pattern_v6" {
  body = <<EOF
[
  {
    "_id": "index-pattern:cloudwatch",
    "_type": "doc",
    "_source": {
      "type": "index-pattern",
      "index-pattern": {
        "title": "cloudwatch-*",
        "timeFieldName": "timestamp"
      }
    }
  }
]
EOF
}

If you need additional details, please let me know.

Also, please confirm if I am providing the argument url in the correct place ?
Thank You :slight_smile: