diff --git a/main.tf b/main.tf index c318fd8..d0cac64 100644 --- a/main.tf +++ b/main.tf @@ -80,7 +80,7 @@ resource "helm_release" issuer { server = lookup(local.le_endpoint, each.value.letsencrypt_endpoint, each.value.letsencrypt_endpoint) secretName = "cert-manager-issuer-${each.key}" subscriptionID = var.subscription_id - resourceGroup = var.resource_group_name + resourceGroup = var.dns_resource_group_name dnsZone = each.value.domain }) ] diff --git a/variables.tf b/variables.tf index df7abc1..8c6b026 100644 --- a/variables.tf +++ b/variables.tf @@ -8,6 +8,11 @@ variable "resource_group_name"{ type = string } +variable "dns_resource_group_name"{ + description = "Resource group name for dns zone" + type = string +} + variable "location" { description = "Azure Region" type = string