Skip to content

print

Usage

Outputs a JSON object with contextual information such as the configuration file path, current working directory, cache download location, IAM role (if any), the binary used to run OpenTofu/Terraform, and the command being executed.

Examples

Print out information about the current context of Terragrunt.

Terminal window
$ terragrunt info print
{
"config_path": "/example/path/terragrunt.hcl",
"download_dir": "/example/path/.terragrunt-cache",
"iam_role": "",
"terraform_binary": "tofu",
"terraform_command": "print",
"working_dir": "/example/path"
}

With --all, each unit’s JSON object is indented over several lines, one object after another, and every unit reports the root’s download_dir.