terraform-provider-opensearch icon indicating copy to clipboard operation
terraform-provider-opensearch copied to clipboard

[BUG]Not able to add provider with data opensearch_host

Open sangauppe12 opened this issue 1 year ago • 4 comments

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.

sangauppe12 avatar Nov 23 '23 07:11 sangauppe12

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

jordarlu avatar Dec 05 '23 20:12 jordarlu

Is there any updates about this ?

EmilieDel avatar Apr 23 '24 13:04 EmilieDel

@EmilieDel Could you please share your OpenSearch provider configuration?

rblcoder avatar Apr 24 '24 07:04 rblcoder

@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
}

rblcoder avatar Apr 25 '24 14:04 rblcoder

Thanks @rblcoder, @EmilieDel and @sangauppe12 closing this issue, please feel free to re-open or add a comment if required. Thank you

prudhvigodithi avatar Sep 17 '24 17:09 prudhvigodithi