-
Notifications
You must be signed in to change notification settings - Fork 26
/
outputs.tf
35 lines (29 loc) · 977 Bytes
/
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
// Output VPC
output "vpc_id" {
description = "The ID of the VPC."
value = alicloud_cs_kubernetes.k8s[0].vpc_id
}
output "vswitch_ids" {
description = "List ID of the VSwitches."
value = [alicloud_cs_kubernetes.k8s.*.vswitch_ids]
}
output "nat_gateway_id" {
value = alicloud_cs_kubernetes.k8s[0].nat_gateway_id
}
// Output kubernetes resource
output "cluster_id" {
description = "ID of the kunernetes cluster."
value = alicloud_cs_kubernetes.k8s.*.id
}
output "security_group_id" {
description = "ID of the Security Group used to deploy kubernetes cluster."
value = alicloud_cs_kubernetes.k8s[0].security_group_id
}
output "cluster_nodes" {
description = "List nodes of cluster."
value = alicloud_cs_kubernetes.k8s.*.worker_nodes
}
output "this_k8s_node_ids" {
description = "List ids of of cluster node."
value = [for _, obj in concat(alicloud_cs_kubernetes.k8s.*.worker_nodes, [{}])[0] : lookup(obj,"id")]
}