-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathoutputs.tf
50 lines (44 loc) · 2.02 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
50
# --- root/outputs.tf ---
output "service_network" {
value = try(aws_vpclattice_service_network.lattice_service_network[0], null)
description = <<-EOF
VPC Lattice resource attributes. Full output of **aws_vpclattice_service_network**.
EOF
}
output "vpc_associations" {
value = try(aws_vpclattice_service_network_vpc_association.lattice_vpc_association, null)
description = <<-EOF
VPC Lattice VPC associations. Full output of **aws_vpclattice_service_network_vpc_association**.
EOF
}
output "services" {
value = { for k, v in var.services : k => {
attributes = try(aws_vpclattice_service.lattice_service[k], data.aws_vpclattice_service.lattice_service[k])
service_network_association = try(aws_vpclattice_service_network_service_association.lattice_service_association[k], null)
} }
description = <<-EOF
VPC Lattice Services. The output is composed by the following attributes (per Service created):
- `attributes` = Full output of **aws_vpclattice_service**.
- `service_network_association` = Full output of **aws_vpclattice_service_network_service_association**.
EOF
}
output "target_groups" {
value = { for k, v in var.target_groups : k => try(aws_vpclattice_target_group.lambda_lattice_target_group[k], try(aws_vpclattice_target_group.lattice_target_group[k], null)) }
description = <<-EOF
VPC Lattice Target Groups. Full output of **aws_vpclattice_target_group**.
EOF
}
output "listeners_by_service" {
value = try({ for k, v in module.listeners : k => v.listeners }, null)
description = <<-EOF
VPC Lattice Listener and Rules. Per Lattice Service, each Listener is composed by the following attributes:
- `attributes` = Full output of **aws_vpclattice_listener**.
- `rules` = Full output of **aws_vpclattice_listener_rule**.
EOF
}
output "ram_resource_share" {
value = try(aws_ram_resource_share.ram_resource_share[0], null)
description = <<-EOF
AWS Resource Access Manager resource share. Full output of **aws_ram_resource_share**.
EOF
}