Skip to content

Commit

Permalink
always lookign in common!
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Sep 13, 2024
1 parent d6ad756 commit 4b80035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/terragrunt_plan_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ jobs:
echo "SHOW WORKING DIRECTORY"
echo $PWD
curl -o 1pass.deb https://downloads.1password.com/linux/debian/amd64/stable/1password-cli-amd64-latest.deb
sudo dpkg -i 1pass.deB
cd env
sudo dpkg -i 1pass.deb
mkdir -p env/${{env.ENVIRONMENT}}/common/config
cd env/${{env.ENVIRONMENT}}/common/config
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{env.ENVIRONMENT}}"/notesPlain > ${{env.ENVIRONMENT}}.tfvars
- name: Terragrunt plan ${{env.COMPONENT}}
uses: cds-snc/terraform-plan@7f4ce4a4bdffaba639d32a45272804e37a569408 # v3.0.6
Expand Down
2 changes: 1 addition & 1 deletion env/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
inputs = jsondecode(read_tfvars_file(find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "././${get_env("ENVIRONMENT")}.tfvars")))
inputs = jsondecode(read_tfvars_file(find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "./config/${get_env("ENVIRONMENT")}.tfvars")))
}

inputs = merge(
Expand Down

0 comments on commit 4b80035

Please sign in to comment.