Claus-Theodor Riegg
8 years
Andreas Vöst
1 year
Andreas Vöst
1 year
Moritz Kraus
1 year

Terragrunt/terraform: fork/exec argument list too long

Posted Over 1 year ago. Visible to the public.

When terragrunt is relaying information to input variables it's happening via environment variables. Depending on the size of the content of the variable it might exceed your OS limits. This is independent of your shell.

A possible workaround is to use a generated file to load the input instead of the env variable, e.g.

# WORKAROUND
# the variable my_huge_input cannot be loaded as part of the inputs
generate "dependencies" {
  path      = "dependencies.auto.tfvars"
  if_exists = "overwrite_terragrunt"
  contents = <<EOF
my_input     = ${jsonencode(dependency.my_huge_input)}
EOF
}

See the following issue for further discussion Show archive.org snapshot .

Stefan Langenmaier
Last edit
Over 1 year ago
Stefan Langenmaier
License
Source code in this card is licensed under the MIT License.