kumarvna / terraform-azurerm-mssql-db

Terraform Module to deploy a SQL Server, SQL Database, Storage Account in a Resource Group. The module can create an auto-failover group with a private link and geo-redundant database for high availability needs.
GNU General Public License v3.0
36 stars 42 forks source link

Use existing (already created) storage account in monitoring #16

Open Reintjuu opened 2 years ago

Reintjuu commented 2 years ago

On https://github.com/kumarvna/terraform-azurerm-mssql-db/blob/master/main.tf#L416 only the given var.storage_account_id is used. I think it should be configurable to be reusable from the already created Storage Account (https://github.com/kumarvna/terraform-azurerm-mssql-db/blob/master/main.tf#L40).

Another option would be to allow an external Storage Account to be provided to the module. Just like the parameterized/optional resource group creation.