Closed
Description
Terraform Version
0.10.8
OCI Provider Version
2.0.4
Description:
There does not appear to be a way to construct a route table with a variable number (count/splat) of route_rules. This makes it impossible to route a variable length list of CIDRs to a DRG or IG.
Support is needed for something like:
resource "oci_core_route_table" "rt" {
display_name = "rt"
compartment_id = "${oci_core_virtual_network.vcn.compartment_id}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
route_rules {
cidr_block = "0.0.0.0/0"
network_entity_id = "${oci_core_internet_gateway.ig.id}"
}
route_rules {
count = "${length(var.ext-cidrs)}"
cidr_block = "${element(var.ext-cidrs, count.index)}"
network_entity_id = "${oci_core_drg.drg.0.id}"
}
}