oracle-quickstart / oci-network-firewall

Universal Permissive License v1.0
1 stars 2 forks source link

Issue with datasources on oci-network-firewall #7

Open gedupuriramesh opened 1 year ago

gedupuriramesh commented 1 year ago

While I trying to deploy the terraform code of oci-network-firewall I found a potential bug stating as below

Error: Invalid index

on network.tf line 146, in resource "oci_core_subnet" "oci_network_firewall_subnet": 146: security_list_ids = [data.oci_core_security_lists.allow_all_security_oci_network_firewall_core.security_lists[0].id] |---------------- | data.oci_core_security_lists.allow_all_security_oci_network_firewall_core.security_lists is empty list of object

The given key does not identify an element in this collection value.

Error: Invalid index

on network.tf line 297, in resource "oci_core_subnet" "application_compute_subnetA": 297: security_list_ids = [data.oci_core_security_lists.allow_all_security_application.security_lists[0].id] |---------------- | data.oci_core_security_lists.allow_all_security_application.security_lists is empty list of object

The given key does not identify an element in this collection value.

Error: Invalid index

on network.tf line 314, in resource "oci_core_subnet" "application_compute_subnetB": 314: security_list_ids = [data.oci_core_security_lists.allow_all_security_application.security_lists[0].id] |---------------- | data.oci_core_security_lists.allow_all_security_application.security_lists is empty list of object

I believe the compartment id should be network compartment id instead of compute compartment id.