You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.tf
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -42,18 +42,18 @@ data "oci_core_subnet" "instance_subnet" {
42
42
############
43
43
44
44
// Create a data source for compute shapes.
45
-
// Filter on AD1 to remove duplicates. This should give all the shapes supported on the region.
45
+
// Filter on current AD to remove duplicates and give all the shapes supported on the AD.
46
46
// This will not check quota and limits for AD requested at resource creation
47
-
data"oci_core_shapes""ad1" {
47
+
data"oci_core_shapes""current_ad" {
48
48
compartment_id=var.compartment_ocid
49
-
availability_domain=local.ADs[0]
49
+
availability_domain=local.ADs[(var.ad_number-1)]
50
50
}
51
51
52
52
locals {
53
53
shapes_config={
54
54
// prepare data with default values for flex shapes. Used to populate shape_config block with default values
55
-
// Iterate through data.oci_core_shapes.ad1.shapes (this exclude duplicate data in multi-ad regions) and create a map { name = { memory_in_gbs = "xx"; ocpus = "xx" } }
56
-
foriindata.oci_core_shapes.ad1.shapes:i.name=> {
55
+
// Iterate through data.oci_core_shapes.current_ad.shapes (this exclude duplicate data in multi-ad regions) and create a map { name = { memory_in_gbs = "xx"; ocpus = "xx" } }
0 commit comments