-
Notifications
You must be signed in to change notification settings - Fork 10
/
outputs.tf
47 lines (36 loc) · 1.07 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
###
# compute.tf outputs
###
output "instance_id" {
value = oci_core_instance.simple-vm.id
}
output "instance_public_ip" {
value = oci_core_instance.simple-vm.public_ip
}
output "instance_private_ip" {
value = oci_core_instance.simple-vm.private_ip
}
output "instance_https_url" {
value = (local.is_public_subnet ? "https://${oci_core_instance.simple-vm.public_ip}" : "https://${oci_core_instance.simple-vm.private_ip}")
}
###
# network.tf outputs
###
output "vcn_id" {
value = ! local.use_existing_network ? join("", oci_core_vcn.simple.*.id) : var.vcn_id
}
output "subnet_id" {
value = ! local.use_existing_network ? join("", oci_core_subnet.simple_subnet.*.id) : var.subnet_id
}
output "vcn_cidr_block" {
value = ! local.use_existing_network ? join("", oci_core_vcn.simple.*.cidr_block) : var.vcn_cidr_block
}
output "nsg_id" {
value = join("", oci_core_network_security_group.simple_nsg.*.id)
}
###
# image_subscription.tf outputs
###
output "subscription" {
value = data.oci_core_app_catalog_subscriptions.mp_image_subscription.*.app_catalog_subscriptions
}