-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
59 lines (53 loc) · 1.68 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
output "control_plane_lb" {
description = "The DNS name of LB for control plane"
value = nifcloud_load_balancer.this.dns_name
}
output "security_group_name" {
description = "The security group used in the cluster"
value = {
bastion = nifcloud_security_group.bn.group_name,
egress = nifcloud_security_group.px.group_name,
control_plane = nifcloud_security_group.cp.group_name,
worker = nifcloud_security_group.wk.group_name,
}
}
output "private_network_id" {
description = "The private network used in the cluster"
value = nifcloud_private_lan.this.id
}
output "proxy_info" {
description = "The egress information in cluster"
value = { (module.px.instance_id) : {
instance_id = module.px.instance_id,
unique_id = module.px.unique_id,
private_ip = module.px.private_ip,
public_ip = module.px.public_ip,
} }
}
output "bastion_info" {
description = "The basion information in cluster"
value = { (module.bn.instance_id) : {
instance_id = module.bn.instance_id,
unique_id = module.bn.unique_id,
private_ip = module.bn.private_ip,
public_ip = module.bn.public_ip,
} }
}
output "worker_info" {
description = "The worker information in cluster"
value = { for v in module.wk : v.instance_id => {
instance_id = v.instance_id,
unique_id = v.unique_id,
private_ip = v.private_ip,
public_ip = v.public_ip,
} }
}
output "control_plane_info" {
description = "The control plane information in cluster"
value = { for v in module.cp : v.instance_id => {
instance_id = v.instance_id,
unique_id = v.unique_id,
private_ip = v.private_ip,
public_ip = v.public_ip,
} }
}