We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I have some local vars in my terragrunt.hcl How can I print/evaluate show them ? Can I see the structure without applying?
local
terragrunt.hcl
The source of my problem is that I am using map, merge, to merge a bunch of aws tags, and the module wants a string, not a map.
But I cannot see what exactly is being passed to the module, I have to rely on my understanding of terraform documentation.
The text was updated successfully, but these errors were encountered:
Hello, may be helpful to use render-json command and get data in JSON format
render-json
terragrunt render-json terragrunt render-json --with-metadata
References: https://terragrunt.gruntwork.io/docs/reference/cli-options/#render-json
Sorry, something went wrong.
Thank you @denis256 that is very useful!
I had to create a "debug_vars" module like below.. but it was not as good.
main.tf
resource "null_resource" "terraform-debug" { provisioner "local-exec" { command = "echo $VARIABLE >> debug.txt" environment = { VARIABLE = jsonencode(var.debug_vars) } } }
variables.tf
variable "debug_vars" { description = "accepts any type, any value passed as debug_vars for debugging." default = null }
then in terragrunt.hcl
terraform { source = "${get_path_to_repo_root()}//modules//debug_vars" } ## all your code like locals etc here inputs = { user_pool_name = "${local.user_pool_name}" tags = "${local.tags}" debug_vars = "${local.tags}"
No branches or pull requests
Hello,
I have some
local
vars in myterragrunt.hcl
How can I print/evaluate show them ?
Can I see the structure without applying?
The source of my problem is that I am using map, merge, to merge a bunch of aws tags, and the module wants a string, not a map.
But I cannot see what exactly is being passed to the module, I have to rely on my understanding of terraform documentation.
The text was updated successfully, but these errors were encountered: