Skip to content

Issue with datasources on oci-network-firewall #7

@gedupuriramesh

Description

@gedupuriramesh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions