This is a terraform provider that lets you provision elasticsearch resources, compatible with v6 and v7 of elasticsearch. For Elasticsearch 7, you need to use branch and release 7.x For Elasticsearch 6, you need to use branch and release 6.x
We fork this project for the following items:
- use official golang SDK to consume Elasticsearch API: https://github.com/elastic/go-elasticsearch
- implement importer in terraform
- migrate to terraform standalone SDK
- add some resources
The Elasticsearch provider is used to interact with the resources supported by Elasticsearch. The provider needs to be configured with an endpoint URL before it can be used.
Sample:
provider "elasticsearch" {
urls = "http://elastic.company.com:9200"
username = "elastic"
password = "changeme"
}
The following arguments are supported:
- urls: (required) The list of endpoint Elasticsearch URL, separated by comma.
- username: (optional) The username to connect on it.
- password: (optional) The password to connect on it.
- insecure: (optional) To disable the certificate check.
- cacert_file: (optional) The CA contend to use if you use custom PKI.
- retry: (optional) The number of time you should to retry connexion befaore exist with error. Default to
6
. - wait_before_retry: (optional) The number of time in second we wait before each connexion retry. Default to
10
.
- elasticsearch_index_lifecycle_policy
- elasticsearch_index_template
- elasticsearch_index_component_template
- elasticsearch_index_template_legacy
- elasticsearch_role
- elasticsearch_role_mapping
- elasticsearch_user
- elasticsearch_license
- elasticsearch_snapshot_repository
- elasticsearch_snapshot_lifecycle_policy
- elasticsearch_watcher