Fixing a weird Terragrunt error

Posted on Aug 24, 2022

When I ran any terragrunt command, I got this error:

ERRO[0000] json: cannot unmarshal array into Go struct field Statement.Statement.Action of type string
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Turns out this is what I got when I hadn’t run terraform init yet.

In general, if terragrunt is erroring, try terraform and see if you can get any more clues.

comments powered by Disqus