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

Connect: connection timed out message when creating an index using terraform #359

Open pastibog opened 11 months ago

pastibog commented 11 months ago

Hello,

We are using this provider to create an Opensearch cluster which works fine but when we are attempting to create an index, after about 6 minutes we get a message that the connection timed out and the terraform fails. Full message: Error: Put "<opensearch_endpoint>/<index_name>": dial tcp <ip>:443: connect: connection timed out

Our provider is configured like so:

provider "elasticsearch" {
  url = "https://<opensearch_cluster_endpoint>"
  healthcheck = false
  elasticsearch_version = "OpenSearch_2.7"
  sign_aws_requests = false
  username = <master_username>
  password  = <master_password>
}

I had seen no timeout settings on the provider configuration page so I'd like to ask if there is anything we could do to fix this. Thanks.