diff --git a/env/terragrunt.hcl b/env/terragrunt.hcl index 175110c62..36c4108a4 100644 --- a/env/terragrunt.hcl +++ b/env/terragrunt.hcl @@ -12,12 +12,11 @@ inputs = merge( } ) - terraform { +terraform { before_hook "before_hook" { commands = local.inputs.env == "dev" ? ["apply", "plan"] : [] - execute = - [find_in_parent_folders("./scripts/checkEnvFile.sh"), find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "/var/tmp/${get_env("ENVIRONMENT")}.tfvars")] + execute = [find_in_parent_folders("./scripts/checkEnvFile.sh"), find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "/var/tmp/${get_env("ENVIRONMENT")}.tfvars")] } }