-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
Supplying custom terraform binary via --terragrunt-tfpath breaks terraform #265
Comments
Sounds like a bug! Teragrunt args should be filtered out here: https://github.com/gruntwork-io/terragrunt/blob/master/cli/args.go#L138 Perhaps something broke with that code. PRs are welcome! |
I am running into the same issue. If I use --terragrunt-tfpath=xxx before plan, I get
But, if I pass 'path' before the terragrunt flag, it gets passed to the terraform command. |
Don't know if it's related but Yori asked me to log it. Basically Trying using --terragrunt-tfpath seems to fail while using TERRAGRUNT_PATH, things work better. He said "hat definitely looks like a bug. Specifically, it looks like we forgot to mark |
Updating this issue, the flag |
The bug appeared today for me as well. Setting the environmental variable |
While this particular bug still exists, there is a new workaround now: you can set the |
same issue for me |
Still an issue:
|
@Tarasovych Terragrunt flags must come after the command, so you need to do |
Supplying the --terragrunt-tfpath= argument to terragrunt breaks terraform. The variable is passed down to the terraform spawn, and then terraform fails due to invalid arguments.
example:
[terragrunt] [/Users/jcharette/vbustash/ox/tf_live/dev/alb] 2017/08/16 07:28:39 Running command: terraform plan -var-file=/Users/jcharette/vbustash/ox/tf_live/dev/alb/terraform.tfvars --terragrunt-tfpath=/Users/jcharette/vbustash/ox/tf_live/dev/terraform
[terragrunt] [/Users/jcharette/vbustash/ox/tf_live/dev/alb] 2017/08/16 07:28:39 Module /Users/jcharette/vbustash/ox/tf_live/dev/alb has finished with an error: exit status 1
Running the same plan without the --terragrunt-tfpath argument succeeds with no errors.
The text was updated successfully, but these errors were encountered: