azurenoops / terraform-azurerm-overlays-workload-spoke

Terraform module overlay to create SCCA compliant Workload Spoke based on the Microsoft Azure Hub-Spoke Architecture using with Azure NoOps.
MIT License
0 stars 0 forks source link

Refactor Peering Provider #37

Closed jrspinella closed 11 months ago

jrspinella commented 1 year ago

Is there an existing issue for this?

Description

Refactor peering provider to allow the call module to pass in provider.

Example: LZ Starter: provider "azurerm" { subscription_id = var.subscription_hub_id features {} } provider "azurerm" { alias = "hub" subscription_id = var.subscription_hub_id features {} }

module "mod_ops_network" { providers = { azurerm = azurerm.operations azurerm.hub_network = azurerm.hub } source = "azurenoops/overlays-management-spoke/azurerm" version = "~> 3.0" }

New or Affected Resource(s)/Data Source(s)

peering.tf

Potential Terraform Configuration

resource "azurerm_virtual_network_peering" "hub_to_spoke" {
  provider                     = azurerm.hub_network
}

References

No response

STG5326 commented 11 months ago

Implemented in Sprint 4