-
Notifications
You must be signed in to change notification settings - Fork 0
/
net_main.tf
24 lines (22 loc) · 1.02 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
# Copyright (c) 2024 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=release-0.6.9"
network_configuration = local.lz_network_configuration
network_dependency = (local.hub_options[var.hub_deployment_option] == 2 || local.hub_options[var.hub_deployment_option] == 4) ? {
"dynamic_routing_gateways" = {
"HUB-DRG" = {"id" : trimspace(var.existing_drg_ocid)}
}
} : null
}