Comments (2)
Sorry about that, you're totally right, the readme example should be:
resource "elasticsearch_index_template" "test" {
name = "terraform-test"
body = <<EOF
{
"template": "logstash-*",
"version": 50001,
"settings": {
"index.refresh_interval": "5s"
},
"mappings": {
"_default_": {
"_all": {"enabled": true, "norms": false},
"dynamic_templates": [ {
"message_field": {
"path_match": "message",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"norms": false
}
}
}, {
"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "text", "norms": false,
"fields": {
"keyword": { "type": "keyword" }
}
}
}
} ],
"properties": {
"@timestamp": { "type": "date", "include_in_all": false },
"@version": { "type": "keyword", "include_in_all": false },
"geoip" : {
"dynamic": true,
"properties": {
"ip": { "type": "ip" },
"location": { "type": "geo_point" },
"latitude": { "type": "half_float" },
"longitude": { "type": "half_float" }
}
}
}
}
}
}
EOF
}
from terraform-provider-elasticsearch.
That's what I've been using for now. Just thought there was unreleased provider version somewhere there:) Thanks!
from terraform-provider-elasticsearch.
Related Issues (20)
- "elasticsearch_index_template" Error: Malformed version: OpenSearch_2.3 HOT 2
- HEAD healthcheck failed! HOT 2
- Support for multiple OpenSearch domains/workspaces/endpoints HOT 6
- Read Datastream upon `resource_already_exists_exception` HOT 2
- Client.Timeout exceeded while awaiting headers
- Invalid type for `cluster.routing.allocation.enable` in `elasticsearch_cluster_settings` resource
- Kibana Alert Modification Not Reflecting in Actual Resource
- Option to pass external id when using aws_assume_role_arn HOT 3
- Cannot create references for Opensearch dashboard or visualization kibana objects HOT 2
- Error: Head "https://xxx.es.eastus2.azure.elastic-cloud.com:9200": context deadline exceeded HOT 2
- terraform import elasticsearch_opensearch_ism_policy.cleanup doesn't import existing ISM policies HOT 1
- [Feature request] - Add Support for snapshot_management HOT 2
- The argument "url" is required, but was not set. HOT 2
- context deadline exceeded for creating elasticsearch_opensearch_role HOT 2
- Error: elastic: Error 401 (Unauthorized) when modifying action_auto_create_index HOT 1
- Connect: connection timed out message when creating an index using terraform
- provider can't reach out to Opensearch domain inside a VPC
- Print `url` in debug / error logs
- Normalize JSON when doing comparison for mappings, etc.
- Terraform detects change even when there is no change HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-elasticsearch.