forked from chime/terraform-aws-alternat
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutputs.tf
More file actions
29 lines (25 loc) · 813 Bytes
/
Copy pathoutputs.tf
File metadata and controls
29 lines (25 loc) · 813 Bytes
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 "nat_instance_eips" {
description = "List of Elastic IP addresses used by the NAT instances. This will be empty if EIPs are provided in var.nat_instance_eip_ids."
value = (local.reuse_nat_instance_eips
? []
: local.nat_instance_eips[*].public_ip)
}
output "nat_gateway_eips" {
description = "List of Elastic IP addresses used by the standby NAT gateways."
value = [
for eip in local.nat_gateway_eips
: eip.public_ip
if var.create_nat_gateways
]
}
output "nat_instance_security_group_id" {
description = "NAT Instance Security Group ID."
value = aws_security_group.nat_instance.id
}
output "autoscaling_group_names" {
description = "Name of autoscaling groups for NAT instances."
value = [
for asg in aws_autoscaling_group.nat_instance
: asg.name
]
}