Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear if logic is working for adding lpg route to a subnet route table #32

Open
chrisdek11 opened this issue Jun 4, 2024 · 0 comments

Comments

@chrisdek11
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant