-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
49 lines (40 loc) · 2.7 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
output "default_collection" {
value = awscc_opensearchserverless_collection.default_collection
description = "Opensearch default collection value."
}
output "default_kb_identifier" {
value = length(awscc_bedrock_knowledge_base.knowledge_base_default) > 0 ? awscc_bedrock_knowledge_base.knowledge_base_default[0].id : null
description = "The unique identifier of the default knowledge base that was created. If no default KB was requested, value will be null"
}
output "mongo_kb_identifier" {
value = length(awscc_bedrock_knowledge_base.knowledge_base_mongo) > 0 ? awscc_bedrock_knowledge_base.knowledge_base_mongo[0].id : null
description = "The unique identifier of the MongoDB knowledge base that was created. If no MongoDB KB was requested, value will be null"
}
output "opensearch_kb_identifier" {
value = length(awscc_bedrock_knowledge_base.knowledge_base_opensearch) > 0 ? awscc_bedrock_knowledge_base.knowledge_base_opensearch[0].id : null
description = "The unique identifier of the OpenSearch knowledge base that was created. If no OpenSearch KB was requested, value will be null"
}
output "pinecone_kb_identifier" {
value = length(awscc_bedrock_knowledge_base.knowledge_base_pinecone) > 0 ? awscc_bedrock_knowledge_base.knowledge_base_pinecone[0].id : null
description = "The unique identifier of the Pinecone knowledge base that was created. If no Pinecone KB was requested, value will be null"
}
output "rds_kb_identifier" {
value = length(awscc_bedrock_knowledge_base.knowledge_base_rds) > 0 ? awscc_bedrock_knowledge_base.knowledge_base_rds[0].id : null
description = "The unique identifier of the RDS knowledge base that was created. If no RDS KB was requested, value will be null"
}
output "datasource_identifier" {
value = length(aws_bedrockagent_data_source.knowledge_base_ds) > 0 ? aws_bedrockagent_data_source.knowledge_base_ds[0].data_source_id : null
description = "The unique identifier of the data source."
}
output "cloudwatch_log_group" {
value = length(aws_cloudwatch_log_group.knowledge_base_cwl) > 0 ? aws_cloudwatch_log_group.knowledge_base_cwl[0].name : null
description = "The name of the CloudWatch log group for the knowledge base. If no log group was requested, value will be null"
}
output "bedrock_agent" {
value = var.create_agent == true ? awscc_bedrock_agent.bedrock_agent : null
description = "The Amazon Bedrock Agent if it is created."
}
output "s3_data_source_arn" {
value = var.kb_s3_data_source != null ? var.kb_s3_data_source : var.create_default_kb ? length(awscc_s3_bucket.s3_data_source) > 0 ? awscc_s3_bucket.s3_data_source[0].arn : null : null
description = "The Amazon Bedrock Data Source for S3."
}