forked from oracle-terraform-modules/terraform-oci-oke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
76 lines (59 loc) · 2.27 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
# 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 = module.vcn.ig_route_id
}
output "nat_route_id" {
description = "id of route table to nat gateway attached to vcn"
value = module.vcn.nat_route_id
}
output "int_lb_nsg" {
description = "id of default NSG that can be associated with the internal load balancer"
value = module.network.int_lb
}
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 (worker, int_lb, pub_lb) 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 = module.vcn.vcn_id
}
# 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 -i ${var.ssh_private_key_path} -J opc@${local.bastion_public_ip} opc@${local.operator_private_ip}"
}
output "ssh_to_bastion" {
description = "convenient command to ssh to the bastion host"
value = "ssh -i ${var.ssh_private_key_path} opc@${local.bastion_public_ip}"
}
output "kubeconfig" {
description = "convenient command to set KUBECONFIG environment variable before running kubectl locally"
value = "export KUBECONFIG=generated/kubeconfig"
}
output "bastion_service_instance_id" {
value = var.create_bastion_service == true ? module.bastionsvc[0].bastion_id: "null"
}