-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
23 lines (22 loc) · 973 Bytes
/
outputs.tf
File metadata and controls
23 lines (22 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Datadog Outputs - Structured for module usage
output "endpoints" {
description = "Datadog endpoints with DNS names"
value = var.datadog.enabled ? {
for k, v in aws_vpc_endpoint.datadog : k => {
dns_name = local.datadog_endpoints_for_region[k].dns_name
}
} : {}
}
# Temporal/Supabase Output - Structured for module usage
output "endpoint" {
description = "PrivateLink endpoint with DNS name"
value = var.temporal.enabled && length(aws_vpc_endpoint.temporal) > 0 ? {
dns_name = try(aws_vpc_endpoint.temporal[0].dns_entry[0].dns_name, "")
address = try("${aws_vpc_endpoint.temporal[0].dns_entry[0].dns_name}:7233", "")
} : (
var.supabase.enabled && length(aws_vpc_endpoint.supabase) > 0 ? {
dns_name = try(data.aws_vpc_endpoint_associations.supabase[0].associations[0].dns_entry[0].dns_name, "")
address = try(data.aws_vpc_endpoint_associations.supabase[0].associations[0].dns_entry[0].dns_name, "")
} : null
)
}