You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Enter your configuration here.
terraform --version
2025-01-13T10:13:38.393-0500 [INFO] Terraform version:1.10.42025-01-13T10:13:38.394-0500 [DEBUG] using github.com/hashicorp/go-tfe v1.70.02025-01-13T10:13:38.394-0500 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.02025-01-13T10:13:38.394-0500 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.12025-01-13T10:13:38.394-0500 [DEBUG] using github.com/zclconf/go-cty v1.16.02025-01-13T10:13:38.394-0500 [INFO] Go runtime version: go1.23.3
Question
Hello.
I'm setting up ArgoCD to use a private repo to deploy the k8s resources defined therein. I can't figure out how to configure this provider to use the repo over https.
resource "argocd_repository" "echo-server-repo" {
name = "echo-server-repo"
type = "git"
repo = "https://github/somerepo.git"
username = "hello-world-user"
password = var.gh_token
}
I managed to setup the repository in the UI using these exact same values without issues but the argocd_repository resource keeps giving me:
terraform apply -var-file=tf.tfvars
│ Error: Repository https://github/somerepo.git not found
│
│ with argocd_repository.echo-server-repo,
│ on main.tf line 73, in resource "argocd_repository" "echo-server-repo":
│ 73: resource "argocd_repository" "echo-server-repo" {
│
│ rpc error: code = Unauthenticated desc = no session information
╵
I'm beginning to suspect that this provider can use github private repos only with ssh like in the example? Is that the case?
Thank you kindly in advance for your help and time.
The text was updated successfully, but these errors were encountered:
$ terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# argocd_repository.echo-server-repo will be created
+ resource "argocd_repository""echo-server-repo" {
+ connection_state_status = (known after apply)
+ id = (known after apply)
+ inherited_creds = (known after apply)
+ name = "my-private-repo"
+ password = (sensitive value)
+ repo = "https://github.com/mkilchhofer/argocd-terraform-support-private.git"
+ type = "git"
+ username = "it-doesnt-matter"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
argocd_repository.echo-server-repo: Creating...
argocd_repository.echo-server-repo: Creation complete after 3s [id=https://github.com/mkilchhofer/argocd-terraform-support-private.git]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Terraform configuration
Question
Hello.
I'm setting up ArgoCD to use a private repo to deploy the k8s resources defined therein. I can't figure out how to configure this provider to use the repo over https.
I managed to setup the repository in the UI using these exact same values without issues but the
argocd_repository
resource keeps giving me:I'm beginning to suspect that this provider can use github private repos only with ssh like in the example? Is that the case?
Thank you kindly in advance for your help and time.
The text was updated successfully, but these errors were encountered: