oracle-quickstart / oci-palo-alto-networks

Terraform module to deploy Palo Alto Networks on Oracle Cloud Infrastructure (OCI)
Apache License 2.0
10 stars 13 forks source link

Active/Passive HA configurations fail in regions with a single AD #38

Open atalakey4work opened 1 year ago

atalakey4work commented 1 year ago

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.