I'm trying to use the Palo Alto Networks Active/Passive HA configurations in a region with a single AD but I get the below error:
$ terraform plan
│ Error: Invalid index
│
│ on compute.tf line 6, in resource "oci_core_instance" "ha-vms":
│ 6: availability_domain = (var.availability_domain_name != "" ? var.availability_domain_name : data.oci_identity_availability_domains.ads.availability_domains[count.index].name)
│ ├────────────────
│ │ count.index is 1
│ │ data.oci_identity_availability_domains.ads.availability_domains is list of object with 1 element
│
│ The given key does not identify an element in this collection value: the given index is greater than or equal to the length of the collection.
Hello,
I'm trying to use the Palo Alto Networks Active/Passive HA configurations in a region with a single AD but I get the below error:
$ terraform plan
│ Error: Invalid index │ │ on compute.tf line 6, in resource "oci_core_instance" "ha-vms": │ 6: availability_domain = (var.availability_domain_name != "" ? var.availability_domain_name : data.oci_identity_availability_domains.ads.availability_domains[count.index].name) │ ├──────────────── │ │ count.index is 1 │ │ data.oci_identity_availability_domains.ads.availability_domains is list of object with 1 element │ │ The given key does not identify an element in this collection value: the given index is greater than or equal to the length of the collection.