terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

terragrunt failed to read variables file

Open Eliasi1 opened this issue 4 years ago • 7 comments

hi, i am new to terragrunt and encountering a problem when try to plan-all. I am using terraform v.0.12.28 and terragrunt v0.23.10. my root terragrunt.hcl: image

my files-tree: image

and the problem i am encountering when trying to terragrunt plan-all: image

i have tried to change the file location to to c:// , but it still gave this error. if i am using terraform to deploy each folder, it works.

i cannot find any similar problem with terragrunt over the internet. does anyone encountered this too?

Eliasi1 avatar Jul 22 '20 12:07 Eliasi1

Does it work if you switch / to \ in the path?:

"${get_parent_terragrunt_dir()}\\terraform.tfvars"

yorinasub17 avatar Jul 22 '20 16:07 yorinasub17

no, unfortunately getting the same result

Eliasi1 avatar Jul 22 '20 17:07 Eliasi1

Eliasi could you remove your cache directory and after that let's try again!

wrogrammer avatar Jul 23 '20 13:07 wrogrammer

i tried it. unfortunately, it results with the same responses

Eliasi1 avatar Jul 23 '20 23:07 Eliasi1

Same issue here. Any updates?

botzill avatar Jul 31 '20 17:07 botzill

no.. sorry, could not solve it yet. i am using terraform for now

Eliasi1 avatar Aug 03 '20 13:08 Eliasi1

Didn't work for me either, I switched to required_var_files = ["${get_parent_terragrunt_dir()}/common.tfvars"] instead of arguments and that worked great.

vallard avatar Jun 07 '22 04:06 vallard