diff --git a/README.md b/README.md index c85625c5..1470295b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ See [the docs for more information](https://www.terraform.io/docs/plugins/basics ## Usage -``` +```tf provider "elasticsearch" { url = "https://search-foo-bar-pqrhr4w3u4dzervg41frow4mmy.us-east-1.es.amazonaws.com" # Don't include port at the end for aws aws_access_key = "" @@ -28,26 +28,55 @@ provider "elasticsearch" { 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" + body = <