terraform-provider-elasticsearch: Regression issue on 1.5.1

After upgrading to 1.5.1 I am getting the following error:

Error: health check timeout: Head "https://elasticsearch.mydomain.com": RequestCanceled: request context canceled
caused by: context deadline exceeded: no Elasticsearch node available

It could be related to aws_assume_role_arn as I use it on my provider config:

provider "elasticsearch" {
  url                 = "https://elasticsearch.mydomain.com"
  aws_region          = "eu-west-1"
  aws_profile         = ""
  aws_assume_role_arn = "arn:aws:iam::111111111:role/Role"
  sign_aws_requests   = true
}

It only seems to happen if I use aws_assume_role_arn and it does not when I use aws_profile. I am using Elasticsearch 7.9.

Reverting back to 1.5.0 and the error disappears.

I see there’s significant changes done in this PR https://github.com/phillbaker/terraform-provider-elasticsearch/pull/119, maybe it’s related.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30 (13 by maintainers)

Commits related to this issue

Most upvoted comments

I can confirm this has been fixed on 1.5.7.

I can confirm the commit that introduced this regression issue was #119. I build binaries for every commit until it broke starting on that one.

I am going to have a deeper look now to see if I can spot the issue, but 100% it was there. @phillbaker