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
|
output "gateway_endpoint_ids" {
description = "Map of Gateway endpoint logical key to endpoint ID"
value = { for k, v in aws_vpc_endpoint.gateway : k => v.id }
}
output "interface_endpoint_ids" {
description = "Map of Interface endpoint logical key to endpoint ID"
value = { for k, v in aws_vpc_endpoint.interface : k => v.id }
}
output "gateway_endpoint_arns" {
description = "Map of Gateway endpoint logical key to endpoint ARN"
value = { for k, v in aws_vpc_endpoint.gateway : k => v.arn }
}
output "interface_endpoint_arns" {
description = "Map of Interface endpoint logical key to endpoint ARN"
value = { for k, v in aws_vpc_endpoint.interface : k => v.arn }
}
output "interface_endpoint_dns_entries" {
description = "Map of Interface endpoint logical key to DNS entries"
value = { for k, v in aws_vpc_endpoint.interface : k => v.dns_entry }
}
output "security_group_id" {
description = "Security group ID used by Interface endpoints, null when none are defined"
value = length(aws_security_group.interface_endpoints) > 0 ? aws_security_group.interface_endpoints["sg"].id : null
}
|