<p>I am trying to install AGIC in AKS using Terraform. I am following this document <a href="https://learn.microsoft.com/en-us/azure/terraform/terraform-create-k8s-cluster-with-aks-applicationgateway-ingress" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/terraform/terraform-create-k8s-cluster-with-aks-applicationgateway-ingress</a> but this document shows partial terraform deployment i want to fully automate it with the help of Terraform. Is there any other document/way to do this?</p>

SiddhiMorajkar
<p>Of course, you can use the Terraform to deploy the Helm charts to the AKS. And here is an example for deploying Helm charts through Terraform:</p>

<pre><code>data "helm_repository" "stable" {
  name = "stable"
  url  = "https://kubernetes-charts.storage.googleapis.com"
}

resource "helm_release" "example" {
  name       = "my-redis-release"
  repository = data.helm_repository.stable.metadata[0].name
  chart      = "redis"
  version    = "6.0.1"

  values = [
    "${file("values.yaml")}"
  ]

  set {
    name  = "cluster.enabled"
    value = "true"
  }

  set {
    name  = "metrics.enabled"
    value = "true"
  }

  set_string {
    name  = "service.annotations.prometheus\\.io/port"
    value = "9127"
  }
}
</code></pre>

<p>And you can also configure the certificate of the AKS to deploy the Helm charts through Terraform, take a look at the document <a href="https://gaunacode.com/creating-and-setting-up-an-aks-cluster-through-terraform" rel="nofollow noreferrer">here</a>.</p>
