terraform-oci-vcn
terraform-oci-vcn copied to clipboard
add LPG Gateway introspection to add LPG specific routes in route_rules
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Add LPG gateway introspection to add LPG-specific routes to other gateways route_rules by adding a predefined value lpg
. This is the same approach used for other gateways with predefined values such as drg
, internet_gateway
, etc..
New or Affected Resource(s)
oci_core_route_table * in oci_core_local_peering_gateway
Potential Terraform Configuration
local_peering_gateways = {lpg1_name = { route_table_id = "", peer_id = "possible_id_of_peered" }}
nat_gateway_route_rules = [
{
destination = "172.18.0.0/16",
destination_type = "CIDR_BLOCK",
network_entity_id = "nat_gateway",
description = "already works, uses the id of the NAT GW created by the OKE module"
},
{
destination = "172.19.0.0/16",
destination_type = "CIDR_BLOCK",
network_entity_id = "LPG@lpg1_name",
description = "this doesn't work right now, the network_entity_id would be the id of the LPG created above"
}
]
References
Initially raised here: oracle-terraform-modules/terraform-oci-oke#514