-
Notifications
You must be signed in to change notification settings - Fork 4
/
subnets.tf
32 lines (30 loc) · 1.53 KB
/
subnets.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
resource "oci_core_subnet" "FoggyKitchenWebSubnet" {
cidr_block = "10.0.1.0/24"
display_name = "FoggyKitchenWebSubnet"
dns_label = "FoggyKitchenN1"
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
vcn_id = oci_core_virtual_network.FoggyKitchenVCN.id
route_table_id = oci_core_route_table.FoggyKitchenRouteTableViaNAT.id
dhcp_options_id = oci_core_dhcp_options.FoggyKitchenDhcpOptions1.id
security_list_ids = [oci_core_security_list.FoggyKitchenWebSecurityList.id,oci_core_security_list.FoggyKitchenSSHSecurityList.id]
}
resource "oci_core_subnet" "FoggyKitchenLBSubnet" {
cidr_block = "10.0.2.0/24"
display_name = "FoggyKitchenLBSubnet"
dns_label = "FoggyKitchenN2"
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
vcn_id = oci_core_virtual_network.FoggyKitchenVCN.id
route_table_id = oci_core_route_table.FoggyKitchenRouteTableViaIGW.id
dhcp_options_id = oci_core_dhcp_options.FoggyKitchenDhcpOptions1.id
security_list_ids = [oci_core_security_list.FoggyKitchenWebSecurityList.id]
}
resource "oci_core_subnet" "FoggyKitchenBastionSubnet" {
cidr_block = "10.0.3.0/24"
display_name = "FoggyKitchenBastionSubnet"
dns_label = "FoggyKitchenN3"
compartment_id = oci_identity_compartment.FoggyKitchenCompartment.id
vcn_id = oci_core_virtual_network.FoggyKitchenVCN.id
route_table_id = oci_core_route_table.FoggyKitchenRouteTableViaIGW.id
dhcp_options_id = oci_core_dhcp_options.FoggyKitchenDhcpOptions1.id
security_list_ids = [oci_core_security_list.FoggyKitchenSSHSecurityList.id]
}