-
Notifications
You must be signed in to change notification settings - Fork 27
/
outputs.tf
73 lines (58 loc) · 2.1 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
output "default_sg" {
description = "The ID of the default SG for the VPC"
value = aws_vpc.vpc.default_security_group_id
}
output "flowlog_log_group_arn" {
description = "The ARN of the flow log CloudWatch log group if one was created"
value = join(" ", aws_cloudwatch_log_group.flowlog_group.*.arn)
}
output "flowlog_log_group_name" {
description = "The name of the flow log CloudWatch log group if one was created"
value = var.build_flow_logs ? aws_cloudwatch_log_group.flowlog_group[0].name : ""
}
output "internet_gateway" {
description = "The ID of the Internet Gateway"
value = aws_internet_gateway.igw.*.id
}
output "nat_gateway" {
description = "The ID of the NAT Gateway if one was created"
value = aws_nat_gateway.nat.*.id
}
output "nat_gateway_ids" {
description = "The ID of the NAT Gateway if one was created"
value = aws_eip.nat_eip.*.id
}
output "nat_gateway_private_ips" {
description = "The private IPs of the NAT Gateway if one was created"
value = aws_eip.nat_eip.*.private_ip
}
output "nat_gateway_public_ips" {
description = "The public IPs of the NAT Gateway if one was created"
value = aws_eip.nat_eip.*.public_ip
}
output "private_route_tables" {
description = "The IDs for the private route tables"
value = aws_route_table.private_route_table.*.id
}
output "private_subnets" {
description = "The IDs for the private subnets"
value = aws_subnet.private_subnet.*.id
depends_on = [aws_route_table_association.private_route_association]
}
output "public_route_tables" {
description = "The IDs for the public route tables"
value = aws_route_table.public_route_table.*.id
}
output "public_subnets" {
description = "The IDs of the public subnets"
value = aws_subnet.public_subnet.*.id
depends_on = [aws_route_table_association.public_route_association]
}
output "vpc_id" {
description = "The ID of the VPC"
value = aws_vpc.vpc.id
}
output "vpn_gateway" {
description = "The ID of the VPN gateway if one was created"
value = join(" ", aws_vpn_gateway.vpn_gateway.*.id)
}