terraform-provider-argocd icon indicating copy to clipboard operation
terraform-provider-argocd copied to clipboard

Provider use argocd cli login?

Open psimms-r7 opened this issue 3 years ago • 1 comments

Is it possible for the terraform provider to use the login details of the current user as logged in via the argocd cli? So if I login to argocd cli as my account, then that same authentication can be used for the terraform provider?

psimms-r7 avatar Jun 13 '22 10:06 psimms-r7

Yes, with https://registry.terraform.io/providers/oboukili/argocd/latest/docs#use_local_config

provider "argocd" {
  server_addr = "argocd.local:443"
  use_local_config = true
  context = "argocd.prod"    <--- optional, but useful if you have multiple contexts
}

MrLuje avatar Jun 25 '22 14:06 MrLuje