-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasources.tf
38 lines (30 loc) · 1023 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
34
35
36
37
38
## Copyright (c) 2022 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_containerengine_cluster_option" "oci_oke_cluster_option" {
cluster_option_id = "all"
}
data "oci_containerengine_node_pool_option" "oci_oke_node_pool_option" {
node_pool_option_id = "all"
}
data "oci_core_services" "AllOCIServices" {
count = var.use_existing_vcn ? 0 : 1
filter {
name = "name"
values = ["All .* Services In Oracle Services Network"]
regex = true
}
}
data "oci_identity_availability_domains" "ADs" {
compartment_id = var.tenancy_ocid
}
data "oci_identity_availability_domains" "AD" {
compartment_id = var.tenancy_ocid
filter {
name = "name"
values = ["${var.availability_domain}"]
}
}
data "oci_containerengine_cluster_kube_config" "KubeConfig" {
cluster_id = oci_containerengine_cluster.oci_oke_cluster.id
token_version = var.cluster_kube_config_token_version
}