Skip to main content
Knowledge Base

ERROR: vars file does not exist

Answer

Hello, good morning. We are using the Reference Architecture that was deployed by gruntwork for us, and now we want to setup the CI/CD in one of the services that should be deployed to our kubernetes cluster. The deployment through the `infrastructure-live` repository is working fine, but when I setup the CI/CD in my project following the instructions provided by gruntwork, it keeps raising the following error: `[ecs-deploy-runner][20[22](https://github.com/AzraGames/api-nakama/runs/7691973569?check_suite_focus=true#step:5:23)-08-05T13:17:00+0000] ERROR: vars file arcanas-dev/us-east-1/arcanas-dev/services/nakama-api-server/terragrunt.hcl does not exist.` This is the exact relative path from the root of the `infrastructure-live` repository to the `terragrunt.hcl` of the project that I want to deploy. Can someone help me? I already spent over 4h on this and I couldn't find the reason why it is failing. --- <ins datetime="2022-08-05T13:28:26Z"> <p><a href="https://support.gruntwork.io/hc/requests/109104">Tracked in ticket #109104</a></p> </ins>

Update I was able to make it work by modifying the `deploy-docker-image.sh` that came with our infrastructure repo. I had to add `update_args+=(--git-url "$DEFAULT_INFRA_REPOSITORY")` to the `deploy_docker_image` function and set this `DEFAULT_INFRA_REPOSITORY` in our `constants.sh` with the `ssh` url of our live repository.