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
I am running into errors while trying to deploy this drg-ha-use-case terraform configuration .
basically the all_allow security lists are empty that's why the data source reference in the subnet resource is failing . It's like some resources are not created that quickly enough for the data source to fetch its attributes
Yould please help fix this error? something is off
see error below
╷
│ Error: Invalid index
│
│ on network.tf line 240, in resource "oci_core_subnet" "mangement_subnet":
│ 240: security_list_ids = [data.oci_core_security_lists.allow_all_security.security_lists[0].id]
│ ├────────────────
│ │ data.oci_core_security_lists.allow_all_security.security_lists is empty list of object
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│ on network.tf line 256, in resource "oci_core_subnet" "trust_subnet":
│ 256: security_list_ids = [data.oci_core_security_lists.allow_all_security.security_lists[0].id]
│ ├────────────────
│ │ data.oci_core_security_lists.allow_all_security.security_lists is empty list of object
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
... AND ALL REMAINING SUBNETS IN THE CONFIG
Here is the list of resources involved in the first error : management_subnet line240 in network.tf
Problem solved , but your team need to test your code locally not only through RM be more responsive to end users issues.
you switched between compute and network compartment variables in several spots in your code (datasource.tf) as shown below.
Security lists;
Vnic attachments
see my blog post for a full explanation on the fixes for the drg-ha-use-case stack.
I am running into errors while trying to deploy this drg-ha-use-case terraform configuration .
basically the all_allow security lists are empty that's why the data source reference in the subnet resource is failing . It's like some resources are not created that quickly enough for the data source to fetch its attributes
Yould please help fix this error? something is off
see error below
Here is the list of resources involved in the first error : management_subnet line240 in network.tf
Thank you
The text was updated successfully, but these errors were encountered: