Skip to content

Commit

Permalink
getting crazy here, trying this
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Sep 5, 2024
1 parent 28c983b commit b63cba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/terragrunt_plan_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ jobs:
- name: Retrieve TFVars
run: |
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{env.ENVIRONMENT}}"/notesPlain > /var/tmp/${{ env.ENVIRONMENT }}.tfvars
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{env.ENVIRONMENT}}"/notesPlain > ${{ env.ENVIRONMENT }}.tfvars
- name: Terragrunt plan common
uses: cds-snc/terraform-plan@2aa797a64e4a37d05fcee5a62195f4c2bde5a0ba
Expand Down Expand Up @@ -191,7 +192,8 @@ jobs:
- name: Retrieve TFVars
run: |
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{ env.ENVIRONMENT }}"/notesPlain > /var/tmp/${{ env.ENVIRONMENT }}.tfvars
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{env.ENVIRONMENT}}"/notesPlain > /var/tmp/${{ env.ENVIRONMENT }}.tfvars
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - ${{env.ENVIRONMENT}}"/notesPlain > ${{ env.ENVIRONMENT }}.tfvars
- name: Terragrunt plan ${{ matrix.module }}
if: |
Expand Down
3 changes: 1 addition & 2 deletions env/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +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("${get_working_dir()}/var/tmp/${get_env("ENVIRONMENT")}.tfvars"))
inputs = jsondecode(read_tfvars_file(find_in_parent_folders("./aws/${get_env("ENVIRONMENT")}.tfvars", "${get_env("ENVIRONMENT")}.tfvars")))
}

inputs = merge(
Expand Down

0 comments on commit b63cba5

Please sign in to comment.