forked from mlinxfeld/terraform-oci-autoscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasources.tf
31 lines (26 loc) · 1.22 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
# Gets a list of Availability Domains
data "oci_identity_availability_domains" "ADs" {
compartment_id = var.tenancy_ocid
}
# Gets the Id of a specific OS Images
data "oci_core_images" "OSImageLocal" {
#Required
compartment_id = var.compartment_ocid
display_name = var.OsImage
}
data "oci_core_vnic_attachments" "FoggyKitchenBastionServer_VNIC1_attach" {
availability_domain = lookup(data.oci_identity_availability_domains.ADs.availability_domains[1], "name")
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
instance_id = oci_core_instance.FoggyKitchenBastionServer.id
}
data "oci_core_vnic" "FoggyKitchenBastionServer_VNIC1" {
vnic_id = data.oci_core_vnic_attachments.FoggyKitchenBastionServer_VNIC1_attach.vnic_attachments.0.vnic_id
}
data "oci_core_vnic_attachments" "FoggyKitchenWebserver_VNIC1_attach" {
availability_domain = lookup(data.oci_identity_availability_domains.ADs.availability_domains[1], "name")
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
instance_id = oci_core_instance.FoggyKitchenWebserver.id
}
data "oci_core_vnic" "FoggyKitchenWebserver_VNIC1" {
vnic_id = data.oci_core_vnic_attachments.FoggyKitchenWebserver_VNIC1_attach.vnic_attachments.0.vnic_id
}