Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inbound connection from hub to network tiers. #142

Merged
merged 3 commits into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/core/tier-0/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module "t0-subnets" {
}

module "t0-outbound-peering" {
source = "../../modules/virtual-network-outbound-peering"
source = "../../modules/virtual-network-peering"

source_rg_name = module.t0-network.resource_group_name
source_vnet_name = module.t0-network.virtual_network_name
Expand All @@ -117,3 +117,20 @@ module "t0-outbound-peering" {
DeploymentName = var.deploymentname
}
}

module "t0-inbound-peering" {
source = "../../modules/virtual-network-peering"
providers = {
azurerm = azurerm.hub
}

source_vnet_name = data.azurerm_virtual_network.hub.name
source_rg_name = data.azurerm_resource_group.hub.name
destination_vnet_name = module.t0-network.virtual_network_name
destination_rg_name = module.t0-network.resource_group_name
destination_subscription_id = var.tier0_subid

tags = {
DeploymentName = var.deploymentname
}
}
19 changes: 18 additions & 1 deletion src/core/tier-1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module "t1-subnets" {
}

module "t1-outbound-peering" {
source = "../../modules/virtual-network-outbound-peering"
source = "../../modules/virtual-network-peering"

source_rg_name = module.t1-network.resource_group_name
source_vnet_name = module.t1-network.virtual_network_name
Expand All @@ -117,3 +117,20 @@ module "t1-outbound-peering" {
DeploymentName = var.deploymentname
}
}

module "t1-inbound-peering" {
source = "../../modules/virtual-network-peering"
providers = {
azurerm = azurerm.hub
}

source_vnet_name = data.azurerm_virtual_network.hub.name
source_rg_name = data.azurerm_resource_group.hub.name
destination_vnet_name = module.t1-network.virtual_network_name
destination_rg_name = module.t1-network.resource_group_name
destination_subscription_id = var.tier1_subid

tags = {
DeploymentName = var.deploymentname
}
}
18 changes: 17 additions & 1 deletion src/core/tier-2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module "t2-subnets" {
}

module "t2-outbound-peering" {
source = "../../modules/virtual-network-outbound-peering"
source = "../../modules/virtual-network-peering"

source_rg_name = module.t2-network.resource_group_name
source_vnet_name = module.t2-network.virtual_network_name
Expand All @@ -117,3 +117,19 @@ module "t2-outbound-peering" {
DeploymentName = var.deploymentname
}
}

module "t2-inbound-peering" {
source = "../../modules/virtual-network-peering"
providers = {
azurerm = azurerm.hub
}
source_vnet_name = data.azurerm_virtual_network.hub.name
source_rg_name = data.azurerm_resource_group.hub.name
destination_vnet_name = module.t2-network.virtual_network_name
destination_rg_name = module.t2-network.resource_group_name
destination_subscription_id = var.tier2_subid

tags = {
DeploymentName = var.deploymentname
}
}