-
Notifications
You must be signed in to change notification settings - Fork 16
/
outputs.tf
92 lines (70 loc) · 2.22 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
output "Default Deployment Tag" {
value = "${var.env_prefix}"
}
output "AuthJSON" {
sensitive = true
value = "${var.service_account_key}"
}
output "Availability Zones" {
value = "${var.zones}"
}
output "Infrastructure Network Name" {
value = "pks-infrastructure"
}
output "Infrastructure Network Google Network Name " {
value = "${var.env_prefix}-virt-net/${var.env_prefix}-subnet-infrastructure-${var.region}/${var.region}"
}
output "Infrastructure Network CIDR" {
value = "${var.infrastructure_cidr}"
}
output "Infrastructure Network Reserved IP Ranges" {
value = "${cidrhost(var.infrastructure_cidr, 1)}-${cidrhost(var.infrastructure_cidr, 9)}"
}
output "Infrastructure Network DNS" {
value = "169.254.169.254"
}
output "Infrastructure Network Gateway" {
value = "${cidrhost(var.infrastructure_cidr, 1)}"
}
output "Main Network Name" {
value = "pks-main"
}
output "Main Network Google Network Name " {
value = "${var.env_prefix}-virt-net/${var.env_prefix}-subnet-pks-${var.region}/${var.region}"
}
output "Main Network CIDR" {
value = "${var.pks_cidr}"
}
output "Main Network Reserved IP Ranges" {
value = "${cidrhost(var.pks_cidr, 1)}-${cidrhost(var.pks_cidr, 9)}"
}
output "Main Network DNS" {
value = "169.254.169.254"
}
output "Main Network Gateway" {
value = "${cidrhost(var.pks_cidr, 1)}"
}
output "Service Network Name" {
value = "pks-services"
}
output "Service Network Google Network Name " {
value = "${var.env_prefix}-virt-net/${var.env_prefix}-subnet-services-${var.region}/${var.region}"
}
output "Service Network CIDR" {
value = "${var.services_cidr}"
}
output "Services Network Reserved IP Ranges" {
value = "${cidrhost(var.services_cidr, 1)}-${cidrhost(var.services_cidr, 9)}"
}
output "Services Network DNS" {
value = "169.254.169.254"
}
output "Services Network Gateway" {
value = "${cidrhost(var.services_cidr, 1)}"
}
output "pks_master_node_service_account_key" {
value = "${base64decode(element(concat(google_service_account_key.pks_master_node_service_account_key.*.private_key, list("")), 0))}"
}
output "pks_worker_node_service_account_key" {
value = "${base64decode(element(concat(google_service_account_key.pks_worker_node_service_account_key.*.private_key, list("")), 0))}"
}