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
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.
╵
The text was updated successfully, but these errors were encountered:
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.
╵
The text was updated successfully, but these errors were encountered: