Q: enable opensearch though terraform i am trying to create opensesarch monitor and for the same using a terrforam provider. I am using 0.11.x version of terraform and it throws a error on terraform apply.
The following provider constraints are not met by the currently-installed
provider plugins:
* elasticsearch (any version)

terraform script used.


terraform {
  required_providers {
    elasticsearch = {
      source = "phillbaker/elasticsearch"
      version = "~> 1.6.3"
    }
  }
}

provider "elasticsearch" {
  url = "https://search-events-pqrhr4w3u4dzervg41frow4mmy.us-east-1.es.amazonaws.com"
  insecure = true
}


resource "elasticsearch_index" "events" {
  name                = "events"
  number_of_shards    = 1
  number_of_replicas  = 1
}




