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

Add possibility to increase timeout for index pattern creation #336

Open
thomaschaaf opened this issue Feb 3, 2023 · 0 comments
Open

Add possibility to increase timeout for index pattern creation #336

thomaschaaf opened this issue Feb 3, 2023 · 0 comments

Comments

@thomaschaaf
Copy link

Creating an index pattern works but sadly the request times out and then the next time the provider tries to create it again.

resource "elasticsearch_kibana_object" "team_index_pattern" {
  for_each = toset([for team in local.teams : team])
  index    = "${lower(each.value)}-*"
  body     = <<EOF
[
  {
    "_id": "index-pattern:${lower(each.value)}-*",
    "_type": "_doc",
    "_source": {
      "type": "index-pattern",
      "index-pattern": {
        "title": "${lower(each.value)}-*",
        "timeFieldName": "@timestamp"
      }
    }
  }
]
EOF
}
2023-02-03T11:38:45.473+0100 [INFO]  provider.terraform-provider-elasticsearch_v2.0.7: 2023/02/03 11:38:45 [INFO] Failed to put kibana object: Put "https://vpc-XXX.eu-central-1.es.amazonaws.com/teamx-%2A/_doc/index-pattern%3Ateamx-%2A": net/http: request canceled (Client.Timeout exceeded while awaiting headers): timestamp=2023-02-03T11:38:45.472+0100

It would be great if we could increase the timeout. In the end the index pattern is created but it still doesn't find it and there is no way to import the index.

I'm using opensearch version 2.3.

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