Skip to content

Commit

Permalink
OPS-6327 Ignore changes in index mapping (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov authored Nov 12, 2024
1 parent 9e48ccd commit bea6d2b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ resource "opensearch_index" "default_oss_index" {
},
"space_type": "l2"
}
},
"AMAZON_BEDROCK_METADATA": {
"type": "text",
"index": "false"
},
"AMAZON_BEDROCK_TEXT_CHUNK": {
"type": "text",
"index": "true"
}
}
}
Expand All @@ -177,6 +169,10 @@ resource "opensearch_index" "default_oss_index" {
aws_opensearchserverless_access_policy.data_policy,
aws_opensearchserverless_collection.this
]

lifecycle {
ignore_changes = [mappings]
}
}

# OpenSearch index
Expand Down

0 comments on commit bea6d2b

Please sign in to comment.