Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/support terraform config run all #2057

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Nek0trkstr
Copy link

Hi, this PR makes Terragrunt use TERRAGRUNT_CONFIG value when running run-all option.
Closes #2031

Copy link
Member

@denis256 denis256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Nek0trkstr,
after more extensive tests, I found that dependencies still try to load terragrunt.hcl files

Example:
https://github.com/denis256/terragrunt-tests/tree/master/terragrunt-config

# renamed terragrunt.hcl => .terragrunt.hcl
$ TERRAGRUNT_CONFIG=.terragrunt.hcl terragrunt run-all plan
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
ERRO[0000] Module /tmp/terragrunt-tests/terragrunt-config/app has finished with an error: Error reading file at path /tmp/terragrunt-tests/terragrunt-config/dep1/terragrunt.hcl: open /tmp/terragrunt-tests/terragrunt-config/dep1/terragrunt.hcl: no such file or directory  prefix=[/tmp/terragrunt-tests/terragrunt-config/app] 
ERRO[0000] 1 error occurred:
        * Error reading file at path /tmp/terragrunt-tests/terragrunt-config/dep1/terragrunt.hcl: open /tmp/terragrunt-tests/terragrunt-config/dep1/terragrunt.hcl: no such file or directory
 
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terragrunt "run-all plan" do not respects TERRAGRUNT_CONFIG env variable
2 participants