-
Notifications
You must be signed in to change notification settings - Fork 722
Description
Want to create a route table with 0 route rule.
Such a route table can come handy to attach to a subnet which I am not sure if I want to open to public internet or not.
baremetal_core_route_table does not allow me to create such a route table, I can create one from console though.
In case I define route table as:
resource "baremetal_core_route_table" "tts_tf_apps_routetable" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${baremetal_core_virtual_network.tts_tf_vcn.id}"
display_name = "tts_tf_routetable"
}
It errors:
- baremetal_core_route_table.tts_tf_apps_routetable: "route_rules": required field is not set
If I define route table as it crashes and creates a crash.log
resource "baremetal_core_route_table" "tts_tf_apps_routetable" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${baremetal_core_virtual_network.tts_tf_vcn.id}"
display_name = "tts_tf_routetable"
route_rules {}
}