forked from aws-ia/terraform-aws-amazon-vpc-lattice-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
29 lines (24 loc) · 1.11 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
# --- examples/service/outputs.tf ---
output "service_attributes" {
description = "VPC Lattice Service ID."
value = { for k, v in module.service_customdomainname_noauth.services : k => v.attributes }
}
output "service_sn_association" {
description = "VPC Lattice service association."
value = { for k, v in module.service_associations.services : k => v.service_network_association }
}
output "service_listeners" {
description = "VPC Lattice listeners."
value = {
http_listener = module.service_httplistener.listeners_by_service.myservice.http_listener.attributes
https_listener = { for k, v in module.service_httpslistener.listeners_by_service : k => { for i, j in v : i => j.attributes.listener_id } }
}
}
output "service_listener_rules" {
description = "VPC Lattice listener rules."
value = module.service_httplistener.listeners_by_service.myservice.http_listener.rules
}
output "service_log_subscriptions" {
description = "VPC Lattice service log subscriptions."
value = { for k, v in module.service_customdomainname_noauth.services.service1.log_subscriptions : k => v.arn }
}