-
Notifications
You must be signed in to change notification settings - Fork 7
/
outputs.tf
70 lines (60 loc) · 1.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
output "ssh_command" {
value = local.ssh_command
description = "Command to run to SSH into the bastion host"
}
output "ssh_key_path" {
value = pathexpand(format("~/.ssh/%s", local.ssh_key_name))
description = "Path to the SSH Private key for the bastion host"
}
output "bastion_host_ip" {
value = local.bastion_ip
description = "IP Address of the bastion host in the test environment"
}
output "bastion_host_username" {
value = local.username
description = "Username for the bastion host in the test environment"
}
output "vlan_id" {
# TODO: Could possibly remove and use `network_details` instead
value = var.network_type == "private" ? local.priv_vlan_id : local.pub_vlan_id
description = "The vLan ID for the server network"
}
output "subnet" {
# TODO: Could possibly remove and use `network_details` instead
value = var.network_type == "private" ? local.priv_cidr : local.pub_cidr
description = "The IP space for the cluster"
}
output "cluster_name" {
value = local.cluster_name
description = "The name of the Anthos Cluster"
}
output "kubeconfig" {
sensitive = true
description = "The kubeconfig for the Anthos Cluster"
value = data.external.kubeconfig.result.content
}
output "ssh_key" {
sensitive = true
description = "SSH Public and Private Key"
value = local.ssh_key
}
output "network_details" {
description = "The network details for the nodes"
value = {
primary_network = var.network_type == "private" ? "private_network" : "public_network"
private_network = {
id = local.priv_net_id
vlan_id = local.priv_vlan_id
cidr = local.priv_cidr
}
public_network = {
id = local.pub_net_id
vlan_id = local.pub_vlan_id
cidr = local.pub_cidr
}
}
}
output "os_image" {
value = local.os_image
description = "The OS Image used to build the nodes"
}