File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
internal/service/bedrockagent Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -1132,7 +1132,7 @@ resource "aws_iam_role" "bedrock_kb_role" {
11321132 Action = "sts:AssumeRole"
11331133 Condition = {
11341134 StringEquals = {
1135- "aws:SourceAccount": data.aws_caller_identity.current.account_id
1135+ "aws:SourceAccount" : data.aws_caller_identity.current.account_id
11361136 },
11371137 }
11381138 }
@@ -1289,7 +1289,7 @@ locals {
12891289 Principal = {
12901290 AWS = "*"
12911291 }
1292- Action = "es:*"
1292+ Action = "es:*"
12931293 Resource = "arn:${data.aws_partition.current.partition}:es:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:domain/${substr(%[1]q, 0, 28)}/*"
12941294 }
12951295 ]
@@ -1342,27 +1342,27 @@ resource "opensearch_index" "vector_index" {
13421342
13431343 # Mappings for Bedrock Knowledge Base compatibility
13441344 mappings = jsonencode({
1345- "properties": {
1346- "vector_embedding": {
1347- "type": "knn_vector",
1348- "dimension": 1024,
1349- "space_type": "l2",
1350- "method": {
1351- "name": "hnsw",
1352- "engine": "faiss",
1353- "parameters": {
1354- "ef_construction": 128,
1355- "m": 24
1345+ "properties" : {
1346+ "vector_embedding" : {
1347+ "type" : "knn_vector",
1348+ "dimension" : 1024,
1349+ "space_type" : "l2",
1350+ "method" : {
1351+ "name" : "hnsw",
1352+ "engine" : "faiss",
1353+ "parameters" : {
1354+ "ef_construction" : 128,
1355+ "m" : 24
13561356 }
13571357 }
13581358 },
1359- "text": {
1360- "type": "text",
1361- "index": true
1359+ "text" : {
1360+ "type" : "text",
1361+ "index" : true
13621362 },
1363- "metadata": {
1364- "type": "text",
1365- "index": false
1363+ "metadata" : {
1364+ "type" : "text",
1365+ "index" : false
13661366 }
13671367 }
13681368 })
@@ -1371,7 +1371,7 @@ resource "opensearch_index" "vector_index" {
13711371 ignore_changes = [ mappings ]
13721372 }
13731373
1374- depends_on = [ aws_opensearch_domain.knowledge_base ]
1374+ depends_on = [aws_opensearch_domain.knowledge_base]
13751375}
13761376` , rName , model )
13771377}
You can’t perform that action at this time.
0 commit comments