I am trying to checkout registry modules with terraform. I am using a terragrunt container and getting the following error when I use a module that is pulling from github.
/usr/bin/git exited with 128: fatal: unsafe
│ repository ('/path/module' is owned by someone else)
I know this was indroduced due to git changes back in april. I am trying to get around this issue. I have tried adding User: 1000 to the docker compose which allows the checkout as its the same user as I am running on my WSL2. The issue is than the aws creds not mapping correctly.
version: '3'
services:
terraform-utils:
image: alpine/terragrunt:latest
env_file: .env
volumes:
- .:/apps
- $HOME/.aws:/root/.aws
working_dir: /apps