forked from oracle-quickstart/oci-arch-cross-tenancies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasources.tf
58 lines (49 loc) · 1.6 KB
/
datasources.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
# Copyright (c) 2020, Oracle and/or its affiliates.
# All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
# Get list of Availability Domains
data "oci_identity_availability_domains" "ADs_A" {
compartment_id = "${var.tenancy_ocid_a}"
}
data "oci_identity_availability_domains" "ADs_B" {
provider = oci.tenancy_a
compartment_id = "${var.tenancy_ocid_a}"
}
data "oci_identity_availability_domains" "ADs_C" {
provider = oci.tenancy_b
compartment_id = "${var.tenancy_ocid_b}"
}
# Get the latest Oracle Linux image
data "oci_core_images" "InstanceImageOCID_A" {
compartment_id = var.compartment_ocid_a
operating_system = var.instance_os
operating_system_version = var.linux_os_version
filter {
name = "display_name"
values = ["^.*Oracle[^G]*$"]
regex = true
}
}
# Get the latest Oracle Linux image
data "oci_core_images" "InstanceImageOCID_B" {
provider = oci.tenancy_a
compartment_id = var.compartment_ocid_a
operating_system = var.instance_os
operating_system_version = var.linux_os_version
filter {
name = "display_name"
values = ["^.*Oracle[^G]*$"]
regex = true
}
}
# Get the latest Oracle Linux image
data "oci_core_images" "InstanceImageOCID_C" {
provider = oci.tenancy_b
compartment_id = var.compartment_ocid_b
operating_system = var.instance_os
operating_system_version = var.linux_os_version
filter {
name = "display_name"
values = ["^.*Oracle[^G]*$"]
regex = true
}
}