forked from squareops/terraform-aws-vpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
40 lines (32 loc) · 1.19 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
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
}