-
Notifications
You must be signed in to change notification settings - Fork 12
/
outputs.tf
55 lines (44 loc) · 1.6 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
output "vpc_id" {
description = "The ID of the VPC"
value = module.vpc.vpc_id
}
output "vpc_cidr_block" {
description = "IPV4 CIDR Block for this VPC"
value = module.vpc.vpc_cidr_block
}
output "public_subnets" {
description = "List of IDs of public subnets"
value = length(module.vpc.public_subnets) > 0 ? module.vpc.public_subnets : null
}
output "private_subnets" {
description = "List of IDs of private subnets"
value = length(module.vpc.private_subnets) > 0 ? module.vpc.private_subnets : null
}
output "database_subnets" {
description = "List of IDs of database subnets"
value = length(module.vpc.database_subnets) > 0 ? module.vpc.database_subnets : null
}
output "intra_subnets" {
description = "List of IDs of Intra subnets"
value = length(module.vpc.intra_subnets) > 0 ? module.vpc.intra_subnets : null
}
output "vpn_host_public_ip" {
description = "IP Address of VPN Server"
value = var.vpn_server_enabled ? module.vpn_server[0].vpn_host_public_ip : null
}
output "vpn_security_group" {
description = "Security Group ID of VPN Server"
value = var.vpn_server_enabled ? module.vpn_server[0].vpn_security_group : null
}
output "vpc_ipv6_association_id" {
description = "The association ID for the IPv6 CIDR block"
value = module.vpc.vpc_ipv6_association_id
}
output "ipv6_vpc_cidr_block" {
description = "The IPv6 CIDR block"
value = module.vpc.vpc_ipv6_cidr_block
}
output "vpc_secondary_cidr_blocks" {
description = "List of secondary CIDR blocks of the VPC"
value = module.vpc.vpc_secondary_cidr_blocks
}