Azure / terraform-azurerm-avm-ptn-virtualwan

The Azure Verified Module for the Virtual WAN Pattern
https://registry.terraform.io/modules/Azure/avm-ptn-virtualwan/azurerm/latest
MIT License
11 stars 17 forks source link

[AVM Module Issue]: Support for Separate Terraform States for vWAN and Secure Hubs by Environment #107

Open mofaizal opened 1 month ago

mofaizal commented 1 month ago

Check for previous/existing GitHub issues

Issue Type?

Feature Request

(Optional) Module Version

0.5.0

(Optional) Correlation Id

No response

Description

Summary:

The customer requires a flexible deployment strategy for Single Azure Virtual WAN (vWAN) and multiple Secure Hubs across environments, adhering to their security and process requirements. This includes managing separate Terraform states for each environment to allow independent deployment pipelines and prevent process conflicts during production freezes.

Request:

Proposed Resource Group Structure:

This setup helps in managing distinct Terraform states by environment and supports streamlined deployment processes across Dev, Non-Prod, and Prod environments.

jaredfholgate commented 3 weeks ago

We could potentially support this by moving the virtual hubs into a submodule. Then you can choose how you deploy them and break up the module as desired. We won't ever provide orchestration around AVM that creates the state, etc so won't be part of the module. That is up to you to decide. But we can make it easier by allowing direct access to child resources via submodules.

khushal08 commented 2 weeks ago

@jaredfholgate I agree with you. Submodule is the safest.