This is a terraform provider that lets you provision elasticsearch resources, compatible with v6 , v7 and v8 of elasticsearch. For Elasticsearch 8, you need to use branch and release 8.x 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 (8.x for Elasticsearch 8, 7.x for Elasticsearch 7 or 6.x for Elasticsearch 6) (
git checkout 8.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