Search code examples
azureterraformazure-aks

Terraform - deploy a k8s cluster with a custom infrastructure resource group name


a client wants all Terraform deployed according to their naming conventions. how would i edit / define the azure aks infra resource group? I have pasted the portal insert for clarity. Thanks


Solution

  • You can use the node_resource_group argument in the azurerm_kubernetes_cluster resource.

    Source: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#node_resource_group