phillbaker / terraform-provider-elasticsearch

An elasticsearch provider for terraform
https://registry.terraform.io/providers/phillbaker/elasticsearch
Mozilla Public License 2.0
303 stars 133 forks source link

Error: Head "https://xxx.es.eastus2.azure.elastic-cloud.com:9200": context deadline exceeded #352

Closed demoran23 closed 12 months ago

demoran23 commented 1 year ago

I'm getting the following error when trying to apply my changes:

Error: Head "https://xxx.es.eastus2.azure.elastic-cloud.com:9200": context deadline exceeded

provider "elasticsearch" {
  url   = "${var.elasticsearch_endpoint}:9200"
  token = var.elasticsearch_api_key
}

I've gotten the same result using username/password authentication, and insecure mode.

Does this provider support Azure? I know there's some AWS specific settings provided.

phillbaker commented 1 year ago

Hello - this provider supports access to elasticsearch clusters, regardless of where they are hosted, provided that the authentication works. Specifically for elastic-cloud, username/password authentication should be all that is required. Related to https://github.com/phillbaker/terraform-provider-elasticsearch/issues/176.

Usually this error indicates that network access (as opposed to an authentication issue) is at fault.

Please include the following information:

What steps have you taken so far to debug the issue?

phillbaker commented 12 months ago

Closing this, please re-open if you have further details.