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
go build -o /path/to/binary/terraform-provider-elasticsearch
See LICENSE.
- Fork it ( https://github.com/disaster37/terraform-provider-elasticsearch/fork )
- Go to the right branch (7.x for Elasticsearch 7 or 6.x for Elasticsearch 6) (
git checkout 7.x
) - Create your feature branch (
git checkout -b my-new-feature
) - Add feature, add acceptance test and tets your code (
ELASTICSEARCH_URLS=http://127.0.0.1:9200 ELASTICSEARCH_USERNAME=elastic ELASTICSEARCH_PASSWORD=changeme make testacc
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request