Skip to content

Commit

Permalink
attempting to fix hook
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Sep 6, 2024
1 parent 9fb5326 commit 158160f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions env/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ inputs = merge(
}
)

# terraform {
terraform {

# before_hook "before_hook" {
# commands = local.inputs.env == "dev" ? ["apply", "plan"] : []
# execute = ["${get_repo_root()}/scripts/checkEnvFile.sh", "${get_repo_root()}/aws/dev.tfvars"]
# }
before_hook "before_hook" {
commands = local.inputs.env == "dev" ? ["apply", "plan"] : []
execute = ["${get_repo_root()}/scripts/checkEnvFile.sh", read_tfvars_file(find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "/var/tmp/${get_env("ENVIRONMENT")}.tfvars"))]
}

# }
}

generate "provider" {
path = "provider.tf"
Expand Down

0 comments on commit 158160f

Please sign in to comment.