-
Notifications
You must be signed in to change notification settings - Fork 21
/
common.tf
36 lines (30 loc) · 873 Bytes
/
common.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
data "oci_core_images" "talos_x64" {
compartment_id = var.compartment_ocid
operating_system = "Talos"
state = "AVAILABLE"
sort_by = "TIMECREATED"
filter {
name = "display_name"
values = ["amd64"]
regex = true
}
}
data "oci_core_images" "talos_arm" {
compartment_id = var.compartment_ocid
operating_system = "Talos"
state = "AVAILABLE"
sort_by = "TIMECREATED"
filter {
name = "display_name"
values = ["arm64"]
regex = true
}
}
# data "oci_core_image_shapes" "talos_x64" {
# image_id = data.oci_core_images.talos_x64.images[0].id
# }
data "oci_identity_fault_domains" "domains" {
for_each = { for idx, ad in local.zones : ad => idx }
compartment_id = var.compartment_ocid
availability_domain = local.network_public[each.key].availability_domain
}