Skip to content

Commit 35ae6b2

Browse files
fix: index pattern object payload (#57)
1 parent 1ad14d5 commit 35ae6b2

File tree

1 file changed

+1
-2
lines changed
  • modules/dashboard/index-pattern

1 file changed

+1
-2
lines changed

modules/dashboard/index-pattern/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
id = coalesce(var.pattern_id, split("-*", var.pattern)[0])
2+
id = coalesce(var.pattern_id, var.pattern)
33
}
44

55
resource "opensearch_dashboard_object" "index_pattern" {
@@ -8,7 +8,6 @@ resource "opensearch_dashboard_object" "index_pattern" {
88
[
99
{
1010
"_id": "index-pattern:${local.id}",
11-
"_type": "doc",
1211
"_source": {
1312
"type": "index-pattern",
1413
"index-pattern": {

0 commit comments

Comments
 (0)