This repository contains Terraform OCI (Oracle Cloud Infrastructure) modules for networking related resources that help customers align their OCI implementations with the CIS (Center for Internet Security) OCI Foundations Benchmark recommendations.
Universal Permissive License v1.0
15
stars
5
forks
source link
Unclear if logic is working for adding lpg route to a subnet route table #32
Have created a local_peering_gateway and trying to add the LPG_KEY as a routing rule in a subnet route table however getting invalid index in response when running code. Not sure if it is trying to look at entry for lpg route table as opposed to lpg entry in a subnet route table:
Error: Invalid index
│
│ on ..\route_tables.tf line 658, in resource "oci_core_route_table" "drga_specific_route_tables":
│ 658: network_entity_id = rule.value.network_entity_id != null ? rule.value.network_entity_id : rule.value.network_entity_key != null ? local.route_rules_targets_for_LPG_specific_RTs[rule.value.network_entity_key].id : null
│ ├────────────────
│ │ local.route_rules_targets_for_LPG_specific_RTs is object with 5 attributes
│ │ rule.value.network_entity_key is "LPG-KEY"
│
│ The given key does not identify an element in this collection value.
╵
Have created a local_peering_gateway and trying to add the LPG_KEY as a routing rule in a subnet route table however getting invalid index in response when running code. Not sure if it is trying to look at entry for lpg route table as opposed to lpg entry in a subnet route table:
local_peering_gateways = { LPG-KEY = { display_name = "LPG-VCN" }
RT-KEY = { display_name = "RT-VCN" route_rules = { lpg-route = { network_entity_key = "LPG-KEY" description = "LPG routing" destination = "x.x.x.x/x" destination_type = "CIDR_BLOCK" } } }
Error: Invalid index │ │ on ..\route_tables.tf line 658, in resource "oci_core_route_table" "drga_specific_route_tables": │ 658: network_entity_id = rule.value.network_entity_id != null ? rule.value.network_entity_id : rule.value.network_entity_key != null ? local.route_rules_targets_for_LPG_specific_RTs[rule.value.network_entity_key].id : null │ ├──────────────── │ │ local.route_rules_targets_for_LPG_specific_RTs is object with 5 attributes │ │ rule.value.network_entity_key is "LPG-KEY" │ │ The given key does not identify an element in this collection value. ╵