opensearch-project / terraform-provider-opensearch

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

[BUG]Not able to add provider with data opensearch_host #132

Open sangauppe12 opened 9 months ago

sangauppe12 commented 9 months ago

data "opensearch_host" "test" { active = true }

I get the error being - Error: HEAD healthcheck failed: This is usually due to network or permission issues. The underlying error isn't accessible, please debug by disabling healthchecks.

jordarlu commented 8 months ago

@prudhvigodithi @phillbaker , would you please have a look and give your comments, thanks !!

EmilieDel commented 4 months ago

Is there any updates about this ?

rblcoder commented 4 months ago

@EmilieDel Could you please share your OpenSearch provider configuration?

rblcoder commented 4 months ago

@EmilieDel The following Terraform code works for me

terraform {
  required_providers {
    opensearch = {
      source = "opensearch-project/opensearch"
      version = "2.2.1"
    }
  }
}

provider "opensearch" {
  url = "https://localhost:9200"
  username          = "admin"
  password          = "myStrongPassword123@456"

  version_ping_timeout = "10"
  healthcheck = "false"
  insecure = "true"

}

data "opensearch_host" "test" {
  active = true
}