generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
net_main.tf
26 lines (24 loc) · 1.05 KB
/
net_main.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
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
locals {
lz_network_configuration = {
default_compartment_id = local.network_compartment_id
network_configuration_categories = {
"${var.service_label}-network" = {
vcns = merge(local.tt_vcn_1, local.tt_vcn_2, local.tt_vcn_3, local.exa_vcn_1, local.exa_vcn_2, local.exa_vcn_3, local.oke_vcn_1, local.oke_vcn_2, local.oke_vcn_3, local.hub_vcn)
non_vcn_specific_gateways = local.drg
}
}
}
}
module "lz_network" {
source = "github.com/oci-landing-zones/terraform-oci-modules-networking?ref=v0.7.1"
depends_on = [ module.lz_zpr ]
network_configuration = local.lz_network_configuration
network_dependency = (local.chosen_hub_option == 2 || local.chosen_hub_option == 4) ? {
"dynamic_routing_gateways" = {
"HUB-DRG" = {"id" : trimspace(var.existing_drg_ocid)}
}
} : null
tenancy_ocid = var.tenancy_ocid
}