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

Elasticsearch provider #12651

Closed
m87h opened this issue Mar 13, 2017 · 3 comments
Closed

Elasticsearch provider #12651

m87h opened this issue Mar 13, 2017 · 3 comments

Comments

@m87h
Copy link

m87h commented Mar 13, 2017

It would be very useful if Terraform could manage Elasticsearch resources, such as indices, index templates, search templates, etc. I've started prototyping an implementation that covers my current needs, which are limited to index templates. Opening this issue to track API, work, feedback, etc.

I'm currently targeting Elasticsearch 5 and up.

Index templates

resource "elasticsearch_index_template" "test" {
  name = "terraform-test"
  template = "tf-*"
  order = 1

  settings {
    index.number_of_shards = 5
  }

  mapping {
    type = "reports"

    date_property {
      name = "created_at"
      format = "EEE MMM dd HH:mm:ss Z YYYY"
    }

    keyword_property {
      name = "subject"
    }
  }
}

API reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html

PUT _template/terraform-test

{
  "template": "tf-*",
  "order": 1,
  "settings": {
    "index.number_of_shards": 5
  },
  "mappings": {
    "reports": {
      "properties": {
        "created_at": {
          "type": "date",
          "format": "EEE MMM dd HH:mm:ss Z YYYY"
        },
        "subject": {
          "type": "keyword"
        }
      }
    }
  }
}
@stack72
Copy link
Contributor

stack72 commented Mar 13, 2017

Hi

Thanks so much for the request for this new provider!

While we'd love to see something like this, we don't currently have any plans to implement this ourselves. Until then, this issue is unlikely to see any movement and remain stale. We're trying to prune these type of issues (that aren't going to be addressed anytime soon) by closing them. Note that we only do this for enhancement requests and not bugs.

We have future plans to enable community plugins to be available easily from the Terraform binary itself, allowing community members to "ship" plugins with Terraform much easier. There isn't a timeline for this yet but we hope that will allow much easier shipping of both new providers and updates to existing.

Thanks!

@synhershko
Copy link

For anyone looking for an Elasticsearch provider (for snapshot repositories and index templates) there is a nice and useful implementation here: https://github.com/phillbaker/terraform-provider-elasticsearch

@ghost
Copy link

ghost commented Apr 5, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants