-
Notifications
You must be signed in to change notification settings - Fork 4
/
routes.tf
21 lines (20 loc) · 852 Bytes
/
routes.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
resource "oci_core_route_table" "FoggyKitchenRouteTableViaIGW" {
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
vcn_id = oci_core_virtual_network.FoggyKitchenVCN.id
display_name = "FoggyKitchenRouteTableViaIGW"
route_rules {
destination = "0.0.0.0/0"
destination_type = "CIDR_BLOCK"
network_entity_id = oci_core_internet_gateway.FoggyKitchenInternetGateway.id
}
}
resource "oci_core_route_table" "FoggyKitchenRouteTableViaNAT" {
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
vcn_id = oci_core_virtual_network.FoggyKitchenVCN.id
display_name = "FoggyKitchenRouteTableViaNAT"
route_rules {
destination = "0.0.0.0/0"
destination_type = "CIDR_BLOCK"
network_entity_id = oci_core_nat_gateway.FoggyKitchenNATGateway.id
}
}