This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
/
outputs.tf
100 lines (78 loc) · 3.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
output "network" {
description = "A reference (self_link) to the VPC network"
value = module.management_network.network
}
# ---------------------------------------------------------------------------------------------------------------------
# Public Subnetwork Outputs
# ---------------------------------------------------------------------------------------------------------------------
output "public_subnetwork" {
description = "A reference (self_link) to the public subnetwork"
value = module.management_network.public_subnetwork
}
output "public_subnetwork_cidr_block" {
value = module.management_network.public_subnetwork_cidr_block
}
output "public_subnetwork_gateway" {
value = module.management_network.public_subnetwork_gateway
}
output "public_subnetwork_secondary_cidr_block" {
value = module.management_network.public_subnetwork_secondary_cidr_block
}
# ---------------------------------------------------------------------------------------------------------------------
# Private Subnetwork Outputs
# ---------------------------------------------------------------------------------------------------------------------
output "private_subnetwork" {
description = "A reference (self_link) to the private subnetwork"
value = module.management_network.private_subnetwork
}
output "private_subnetwork_cidr_block" {
value = module.management_network.private_subnetwork_cidr_block
}
output "private_subnetwork_gateway" {
value = module.management_network.private_subnetwork_gateway
}
output "private_subnetwork_secondary_cidr_block" {
value = module.management_network.private_subnetwork_secondary_cidr_block
}
# ---------------------------------------------------------------------------------------------------------------------
# Access Tier - Network Tags
# ---------------------------------------------------------------------------------------------------------------------
output "public" {
description = "The network tag string used for the public access tier"
value = module.management_network.public
}
output "private" {
description = "The network tag string used for the private access tier"
value = module.management_network.private
}
output "private_persistence" {
description = "The network tag string used for the private-persistence access tier"
value = module.management_network.private_persistence
}
# ---------------------------------------------------------------------------------------------------------------------
# Instance Info (primarily for testing)
# ---------------------------------------------------------------------------------------------------------------------
output "instance_default_network" {
description = "A reference (self link) to an instance in the default network. Note that the default network allows SSH."
value = google_compute_instance.default_network.self_link
}
output "instance_public_with_ip" {
description = "A reference (self link) to the instance tagged as public in a public subnetwork with an external IP"
value = google_compute_instance.public_with_ip.self_link
}
output "instance_public_without_ip" {
description = "A reference (self link) to the instance tagged as public in a public subnetwork without an internet IP"
value = google_compute_instance.public_without_ip.self_link
}
output "instance_private_public" {
description = "A reference (self link) to the instance tagged as private in a public subnetwork"
value = google_compute_instance.private_public.self_link
}
output "instance_private" {
description = "A reference (self link) to the instance tagged as private in a private subnetwork"
value = google_compute_instance.private.self_link
}
output "instance_private_persistence" {
description = "A reference (self link) to the instance tagged as private-persistence in a private subnetwork"
value = google_compute_instance.private_persistence.self_link
}