Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: HEAD healthcheck failed: This is usually due to network or permission issues #368

Open
Richard-Payne opened this issue Oct 8, 2024 · 0 comments

Comments

@Richard-Payne
Copy link

We have a previously configured Opensearch cluster in Terraform. I'm now trying to make a change to it.
Run terraform plan produces:

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

Settting TF_LOG_PROVIDER=INFO produces this:

2024-10-08T10:52:34.937+0100 [INFO] provider.terraform-provider-elasticsearch_v2.0.2: 2024/10/08 10:52:34 [INFO] couldn't create client: *errors.withStack, no active connection found: no Elasticsearch node available, *errors.withMessage: timestamp=2024-10-08T10:52:34.937+0100

The provider config is:

provider "elasticsearch" {
  url                     = "https://${aws_opensearch_domain.this.endpoint}"
  aws_profile       = "prod"
  username          = null
  password          = null
  sign_aws_requests = null
  healthcheck       = false
}

I pulled the endpoint attribute out of the tf state record and I can curl it successfully, using https, returning the usual cluster information json blob.

Any help resolving this would be appreicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant