Closed gregops closed 4 years ago
Thanks for reporting! If anyone has a few minutes, a PR to handle that error more gracefully is very welcome 👍
Fixed in https://github.com/gruntwork-io/terragrunt/releases/tag/v0.21.8. Binaries will show up shortly.
Not a showstopper, as the workaround is to have working AWS credentials, but a graceful error would've been better, plus it would tell me what the underlying issue was (missing creds, STS expiry, right creds but AWS permission not wide enough etc).
It seems like function
get_aws_account_id()
expects AWS credentials to be present and working, and if they're missing, or are present but relate to an expired STS role assumption session, Terragrunt will crash hard (segfault).This may be a Golang AWS SDK issue, I'm not sure.
My
terragrunt.hcl
:Command (in one of sub-dirs, which sources the above
terragrunt.hcl
):Output:
Versions:
MacOS 10.14.5, Homebrew 2.1.16.