From d4276702c32cc9dca9c8ebe27fcf69f901372200 Mon Sep 17 00:00:00 2001 From: Phillip Baker Date: Fri, 17 Nov 2017 12:03:35 -0500 Subject: [PATCH] Fix example in readme to reflect code Fixes #2 --- README.md | 65 ++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 47 insertions(+), 18 deletions(-) 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 = <