Skip to content

Commit

Permalink
[111] fixed example for opensearch_index_template resource
Browse files Browse the repository at this point in the history
  • Loading branch information
premkirank committed Nov 10, 2023
1 parent 8513270 commit 44fd28e
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions examples/resources/opensearch_index_template/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@ resource "opensearch_index_template" "template_1" {
name = "template_1"
body = <<EOF
{
"template": "te*",
"settings": {
"number_of_shards": 1
},
"mappings": {
"type1": {
"_source": {
"enabled": false
},
"index_patterns": [
"logs-2020-01-*"
],
"template": {
"aliases": {
"my_logs": {}
},
"mappings": {
"properties": {
"host_name": {
"type": "keyword"
},
"created_at": {
"timestamp": {
"type": "date",
"format": "EEE MMM dd HH:mm:ss Z YYYY"
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"value": {
"type": "double"
}
}
}
Expand Down

0 comments on commit 44fd28e

Please sign in to comment.