Open MattKitmanLabs opened 8 months ago
Hi,
before_hook
hook is executed before the execution of terragrunt
command not terragrunt itself.
To run custom commands/scripts can be attempted to use run_cmd
function.
https://terragrunt.gruntwork.io/docs/features/hooks/ https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#run_cmd
@denis256,
First let me thank you for the rapid response and useful info, but I also found this disable_init = true
seems to stop terragrunt creating any buckets.
Scrap that, with disable_init = true
terragrunt seems to have a hard time creating new modules.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.
Describe the bug If I run
aws-vault exec sandbox-poweruser -- chamber exec datadog -- terragrunt plan
but my state files are all kept in production, terragrunt prompts me to create a new bucket in sandbox, then if I hit yes it creates a random bucket in sandbox and then runs the before_hook script to check that I'm attempting to run against production and tells me I'm in the wrong account. whoops too late you went and made a random bucket in sandbox.What's going on here? It seems impossible to get the before hook to actually run before.
Nice to have
Versions
Additional context Add any other context about the problem here.