Skip to main content
Knowledge Base

Issue with terragrunt run-all destory

Answer

Hi, We install argocd using oboukili/argocd source and our code has something like ```terraform resource "helm_release" "argocd" { name = "argo-cd" chart = "argo-cd" repository = "https://argoproj.github.io/argo-helm" create_namespace = true namespace = "argocd" version = "3.29.5" values = [ file("argocd.yaml") ] depends_on = [ sealedsecret_local.argocd_repos, ] } resource "kubectl_manifest" "argocd_secret" { yaml_body = sealedsecret_local.argocd_repos.yaml_content force_new = true server_side_apply = true wait = true } resource "argocd_repository" "argocd_repos" { for_each = var.argocd_repos ssh_private_key = file(each.value.ssh_private_key) repo = each.value.url depends_on = [ helm_release.argocd ] } ``` We deployed the infra using terragrunt and then went fine. Now, when we try to destroy using `terragrunt run-all destroy` we get ``` │ Error: Failed to init clients │ │ with argocd_repository.argocd_repos["k8id"], │ on argocd.tf line 49, in resource "argocd_repository" "argocd_repos": │ 49: resource "argocd_repository" "argocd_repos" { │ │ EOF ╵ ╷ │ Error: Failed to init clients │ │ with argocd_repository.argocd_repos["k8id-config"], │ on argocd.tf line 49, in resource "argocd_repository" "argocd_repos": │ 49: resource "argocd_repository" "argocd_repos" { │ │ EOF ``` Any idea what the issue is ? --- <ins datetime="2022-08-09T07:25:15Z"> <p><a href="https://support.gruntwork.io/hc/requests/109113">Tracked in ticket #109113</a></p> </ins>

It looks like this was resolved in https://github.com/oboukili/terraform-provider-argocd/issues/196, so closing this out.