-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathoutputs.tf
61 lines (48 loc) · 1.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
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# for reuse
output "ad_names" {
description = "list of ADs in the selected region"
value = sort(data.template_file.ad_names.*.rendered)
}
output "operator_private_ip" {
description = "private ip address of operator host"
value = module.operator.operator_private_ip
}
output "bastion_public_ip" {
description = "public ip address of operator host"
value = module.bastion.bastion_public_ip
}
output "group_name" {
description = "name of dynamic group for operator host instance_principal"
value = module.operator.operator_instance_principal_group_name
}
output "ig_route_id" {
description = "Internet Gateway id"
value = module.vcn.ig_route_id
}
output "nat_gateway_id" {
description = "NAT gateway id of VCN"
value = module.vcn.nat_gateway_id
}
output "nat_route_id" {
description = "NAT Routing table id"
value = module.vcn.nat_route_id
}
output "vcn_id" {
description = "VCN id"
value = module.vcn.vcn_id
}
output "home_region" {
description = "tenancy home region"
value = lookup(data.oci_identity_regions.home_region.regions[0], "name")
}
# convenient output
output "ssh_to_bastion" {
description = "convenient output to ssh to the bastion host"
value = "ssh -i ${var.oci_base_bastion.ssh_private_key_path} opc@${module.bastion.bastion_public_ip}"
}
output "ssh_to_operator" {
description = "convenient output to ssh to the operator host"
value = "ssh -i ${var.oci_base_bastion.ssh_private_key_path} -J opc@${module.bastion.bastion_public_ip} opc@${module.operator.operator_private_ip}"
}