I’m running into issues with creating an ArgoCD Gi...
# atmos
n
I’m running into issues with creating an ArgoCD GitHub repository using Terraform. One of the repository was created earlier by one of my colleague, but when I try to create a new one I hit errors. I’ve seen both cases: • When creating a fresh repo, Terraform shows:
Copy code
github_repository.default[0]: Creating...
Error: PATCH https://api.github.com/repos/redacted/argocd-prod: 404 Not Found []
The repo does get created in GitHub, but the apply fails. • On re-running, Terraform tries to create again and fails with:
Copy code
Error: POST https://api.github.com/orgs/redacted/repos: 422 Repository creation failed. 
[{Resource:Repository Field:name Code:custom Message:name already exists on this account}]
I’m using the CloudPosse aws-argocd-github-repo module. What am i missing here ?
e
This is not an atmos problem. This pertains to our commercial reference architecture components
Sounds like the state of that component is not found on S3, so it’s trying to recreate it.
n
ok.. thanks.. i will check