this is a duplicate of #2849
Currently, Terragrunt is able to pass extra arguments and set environment variables for Terraform using hooks or run_cmd() command. However, this does not work for Terragrunt itself.
For example, we constantly have to type terragrunt run-all plan --terragrunt-non-interactive, whereas I would want to set this flag in terragrunt.hcl file (or as an env var TERRAGRUNT_NON_INTERACTIVE=true) and have Terragrunt honour it.
Describe alternatives you've considered
- Wrapper for terragrunt executables, such as Makefiles and bash scripts - but those are messy.
- Setting
TERRAGRUNT_ variables manually on the CLI before running Terragrunt but, again, yet another step and more typing that shouldn't be needed.
Additional context If there's any way to set Terragrunt defaults within itself, that would be great as the number of options is growing and can make for a messy and long command line.
this is a duplicate of #2849
Currently, Terragrunt is able to pass extra arguments and set environment variables for Terraform using hooks or
run_cmd()command. However, this does not work for Terragrunt itself.For example, we constantly have to type
terragrunt run-all plan --terragrunt-non-interactive, whereas I would want to set this flag interragrunt.hclfile (or as an env varTERRAGRUNT_NON_INTERACTIVE=true) and have Terragrunt honour it.Describe alternatives you've considered
TERRAGRUNT_variables manually on the CLI before running Terragrunt but, again, yet another step and more typing that shouldn't be needed.Additional context If there's any way to set Terragrunt defaults within itself, that would be great as the number of options is growing and can make for a messy and long command line.