forked from oracle-quickstart/oci-arch-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasources.tf
33 lines (27 loc) · 997 Bytes
/
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
## Copyright © 2021, 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
data "oci_identity_availability_domains" "ad" {
compartment_id = var.compartment_ocid
}
data "template_file" "ad_names" {
count = length(data.oci_identity_availability_domains.ad.availability_domains)
template = lookup(data.oci_identity_availability_domains.ad.availability_domains[count.index], "name")
}
data "oci_core_images" "InstanceImageOCID" {
compartment_id = var.compartment_ocid
operating_system = var.instance_os
operating_system_version = var.linux_os_version
shape = var.node_shape
filter {
name = "display_name"
values = ["^.*Oracle[^G]*$"]
regex = true
}
}
data "oci_identity_region_subscriptions" "home_region_subscriptions" {
tenancy_id = var.tenancy_ocid
filter {
name = "is_home_region"
values = [true]
}
}