cresta / atlantis-drift-detection

Detect terraform drift in atlantis
Apache License 2.0
65 stars 8 forks source link

When using atlantis-drift-detection, having problems downloading private terraform repos #82

Open romelBen opened 1 year ago

romelBen commented 1 year ago

Hello! I'm wondering what could be my issue in regards to me having issues downloading private repos? Wondering if anyone else has had issues with this.

Logs: {"level":"panic","ts":1689620559.2007089,"caller":"atlantis-drift-detection/main.go:143","msg":"failed to drift","error":"failed to find extra workspaces: failed to init workspace live/dev: Initializing modules...\n- k8s-iam in ../../modules/k8s-iam\nDownloading git::https://github.com/foofoo/map_values.git for map_values...\n:\nError: Failed to download module\n\nCould not download module \"map_values\" (../../modules/k8s-iam/iam.tf:4)\nsource code from\n\"git::[https://github.com/foofoo/map_values.git\](https://github.com/foofoo/map_values.git/)": error\ndownloading 'https://github.com/foofoo/map_values.git':\n/usr/bin/git exited with 128: Cloning into\n'.terraform/modules/k8s-iam.map'...\nfatal: could not read Username for 'https://github.com/': No such device or\naddress\n\n\n\nError: Failed to download module\n\nCould not download module \"map\" (../../modules/k8s-iam/iam.tf:4)\nsource code from\n\"git::[https://github.com/foofoo/map_values.git\](https://github.com/foofoo/map_values.git/)": error\ndownloading 'https://github.com/foofoo/map_values.git':\n/usr/bin/git exited with 128: Cloning into\n'.terraform/modules/k8s-iam.map'...\nfatal: could not read Username for 'https://github.com/': No such device or\naddress\n\n\n:exit status 1","stacktrace":"main.main\n\t/app/cmd/atlantis-drift-detection/main.go:143\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}

The GH App has enough permissions to download the repos so unsure what is blocking it.

romelBen commented 1 year ago

How would one incorporate AWS if we have our tf statefiles stored on AWS S3 buckets?