forked from oracle-terraform-modules/terraform-oci-oke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
92 lines (73 loc) · 2.82 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
# Copyright 2017, 2021 Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# for reuse
output "cluster_id" {
description = "ID of the Kubernetes cluster"
value = module.oke.cluster_id
}
output "nodepool_ids" {
description = "Map of Nodepool names and IDs"
value = module.oke.nodepool_ids
}
output "ig_route_id" {
description = "id of route table to vcn internet gateway"
value = local.ig_route_id
}
output "nat_route_id" {
description = "id of route table to nat gateway attached to vcn"
value = local.nat_route_id
}
# Deprecated
output "int_lb_nsg" {
description = "id of default NSG that can be associated with the internal load balancer"
value = module.network.int_lb
}
output "nsg_ids" {
description = "map of NSG ids (cp, worker, int_lb, pub_lb, pod) used by OKE."
value = module.network.nsg_ids
}
# Deprecated
output "pub_lb_nsg" {
description = "id of default NSG that can be associated with the internal load balancer"
value = module.network.pub_lb
}
output "subnet_ids" {
description = "map of subnet ids (cp, worker, int_lb, pub_lb, pod) used by OKE."
value = module.network.subnet_ids
}
output "vcn_id" {
description = "id of vcn where oke is created. use this vcn id to add additional resources"
value = local.vcn_id
}
output "drg_id" {
description = "ID of DRG. use this DRG id to add additional resources"
value = var.create_drg || var.drg_id != null ? module.drg[0].drg_id : null
}
# convenient output
output "bastion_public_ip" {
description = "public ip address of bastion host"
value = local.bastion_public_ip
}
output "operator_private_ip" {
description = "private ip address of operator host"
value = local.operator_private_ip
}
output "ssh_to_operator" {
description = "convenient command to ssh to the operator host"
value = "ssh${local.ssh_key_arg} -J ${var.bastion_user}@${local.bastion_public_ip} ${var.operator_user}@${local.operator_private_ip}"
}
output "ssh_to_bastion" {
description = "convenient command to ssh to the bastion host"
value = "ssh${local.ssh_key_arg} ${var.bastion_user}@${local.bastion_public_ip}"
}
# Suppress reported output change on clean destroy
output "kubeconfig" {
description = "convenient command to set KUBECONFIG environment variable before running kubectl locally"
value = length(module.oke.cluster_id) == 0 ? null : "export KUBECONFIG=generated/kubeconfig"
}
output "bastion_service_instance_id" {
value = var.create_bastion_service == true ? module.bastionsvc[0].bastion_id : null
}
output "fss_id" {
value = var.create_fss == true ? module.storage[0].fss_id : null
}