-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
179 lines (144 loc) · 6.29 KB
/
outputs.tf
File metadata and controls
179 lines (144 loc) · 6.29 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
output "main_vpc_id" {
value = local.main_vpc_id
description = "ID of the main VPC that contains the Braintrust resources"
}
output "quarantine_vpc_id" {
value = local.quarantine_vpc_id
description = "ID of the quarantine VPC that user functions run inside of."
}
output "main_vpc_cidr" {
value = var.create_vpc ? module.main_vpc[0].vpc_cidr : null
description = "CIDR block of the main VPC"
}
output "main_vpc_public_subnet_1_id" {
value = local.main_vpc_public_subnet_1_id
description = "ID of the public subnet in the main VPC"
}
output "main_vpc_private_subnet_1_id" {
value = local.main_vpc_private_subnet_1_id
description = "ID of the first private subnet in the main VPC"
}
output "main_vpc_private_subnet_2_id" {
value = local.main_vpc_private_subnet_2_id
description = "ID of the second private subnet in the main VPC"
}
output "main_vpc_private_subnet_3_id" {
value = local.main_vpc_private_subnet_3_id
description = "ID of the third private subnet in the main VPC"
}
output "main_vpc_public_route_table_id" {
value = var.create_vpc ? module.main_vpc[0].public_route_table_id : null
description = "ID of the public route table in the main VPC (null when using existing VPC)"
}
output "main_vpc_private_route_table_id" {
value = var.create_vpc ? module.main_vpc[0].private_route_table_id : null
description = "ID of the private route table in the main VPC (null when using existing VPC)"
}
output "brainstore_security_group_id" {
value = var.enable_brainstore ? module.services_common.brainstore_instance_security_group_id : null
description = "ID of the security group for the Brainstore instances"
}
output "brainstore_s3_bucket_name" {
value = var.enable_brainstore ? module.storage.brainstore_bucket_id : null
description = "Name of the Brainstore S3 bucket"
}
output "rds_security_group_id" {
value = module.database.rds_security_group_id
description = "ID of the security group for the RDS instance"
}
output "redis_security_group_id" {
value = module.redis.redis_security_group_id
description = "ID of the security group for the Elasticache instance"
}
output "lambda_security_group_id" {
value = !var.use_deployment_mode_external_eks ? module.services[0].lambda_security_group_id : null
description = "ID of the security group for the Lambda functions"
}
output "api_security_group_id" {
value = module.services_common.api_security_group_id
description = "ID of the security group for the API handler"
}
output "ecs_cluster_arn" {
value = var.enable_llm_gateway ? module.ecs[0].cluster_arn : null
description = "ARN of the ECS cluster used for ECS services"
}
output "gateway_service_name" {
value = var.enable_llm_gateway ? module.gateway_ecs[0].service_name : null
description = "Name of the ECS gateway service"
}
output "gateway_alb_dns_name" {
value = var.enable_llm_gateway ? module.gateway_ecs[0].alb_dns_name : null
description = "Internal DNS name of the private gateway ALB"
}
output "gateway_alb_arn" {
value = var.enable_llm_gateway ? module.gateway_ecs[0].alb_arn : null
description = "ARN of the private gateway ALB"
}
output "gateway_target_group_arn" {
value = var.enable_llm_gateway ? module.gateway_ecs[0].target_group_arn : null
description = "ARN of the gateway ALB target group"
}
output "gateway_task_security_group_id" {
value = var.enable_llm_gateway ? module.gateway_ecs[0].task_security_group_id : null
description = "ID of the security group for ECS gateway tasks"
}
output "postgres_database_identifier" {
value = module.database.postgres_database_identifier
description = "Identifier of the main Braintrust Postgres database"
}
output "postgres_database_arn" {
value = module.database.postgres_database_arn
description = "ARN of the main Braintrust Postgres database"
}
output "postgres_database_secret_arn" {
value = module.database.postgres_database_secret_arn
description = "ARN of the secret containing the main Postgres database credentials"
}
output "redis_arn" {
value = module.redis.redis_arn
description = "ARN of the Redis instance"
}
output "api_url" {
value = !var.use_deployment_mode_external_eks ? module.ingress[0].api_url : null
description = "The primary endpoint for the dataplane API. This is the value that should be entered into the braintrust dashboard under API URL."
}
output "cloudfront_distribution_domain_name" {
value = !var.use_deployment_mode_external_eks ? module.ingress[0].cloudfront_distribution_domain_name : null
description = "The domain name of the cloudfront distribution"
}
output "cloudfront_distribution_arn" {
value = !var.use_deployment_mode_external_eks ? module.ingress[0].cloudfront_distribution_arn : null
description = "The ARN of the cloudfront distribution"
}
output "cloudfront_distribution_hosted_zone_id" {
value = !var.use_deployment_mode_external_eks ? module.ingress[0].cloudfront_distribution_hosted_zone_id : null
description = "The hosted zone ID of the cloudfront distribution"
}
output "kms_key_arn" {
value = local.kms_key_arn
description = "ARN of the KMS key used to encrypt Braintrust resources"
}
output "quarantine_invoke_role_arn" {
value = module.services_common.quarantine_invoke_role_arn
description = "ARN of the IAM role used by the API handler to invoke quarantined functions"
}
output "quarantine_function_role_arn" {
value = module.services_common.quarantine_function_role_arn
description = "ARN of the IAM role used by quarantined Lambda functions"
}
output "quarantine_private_subnet_1_id" {
value = local.quarantine_vpc_private_subnet_1_id
description = "ID of the first private subnet in the quarantine VPC"
}
output "quarantine_private_subnet_2_id" {
value = local.quarantine_vpc_private_subnet_2_id
description = "ID of the second private subnet in the quarantine VPC"
}
output "quarantine_private_subnet_3_id" {
value = local.quarantine_vpc_private_subnet_3_id
description = "ID of the third private subnet in the quarantine VPC"
}
output "quarantine_lambda_security_group_id" {
value = module.services_common.quarantine_lambda_security_group_id
description = "ID of the security group for quarantine Lambda functions"
}