My TF version is 0.12.13.
I hadn't seen these errors last week with the same repo and TF version! What might the issue be?
Error: Invalid index
on modules\oke\nodepools.tf line 26, in resource "oci_containerengine_node_pool" "nodepools":
26: node_image_id = var.node_pools.node_pool_image_id == "NONE" ? data.oci_core_images.latest_images[count.index].images[0].id : var.node_pools.node_pool_image_id
|----------------
| count.index is 0
| data.oci_core_images.latest_images is tuple with 1 element
The given key does not identify an element in this collection value.
Error: Invalid index
on modules\policies\locals.tf line 10, in locals:
10: policy_statement = "Allow dynamic-group ${oci_identity_dynamic_group.oke-kms-cluster[0].name} to use keys in compartment ${var.oci_identity.compartment_name} where target.key.id = '${var.oke_kms.key_id}'"
|----------------
| oci_identity_dynamic_group.oke-kms-cluster is empty tuple
The given key does not identify an element in this collection value.
Error: Invalid index
on modules\base\bastion\outputs.tf line 9, in output "bastion_instance_principal_group_name":
9: value = oci_identity_dynamic_group.bastion_instance_principal[0].name
|----------------
| oci_identity_dynamic_group.bastion_instance_principal is empty tuple
The given key does not identify an element in this collection value.