File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,11 @@ jobs:
134134
135135 - name : Terraform Plan
136136 run : |
137+ inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
137138 terraform -chdir=terraform/infrastructure plan \
138139 --var-file=etc/${{ vars.ACCOUNT_NAME }}.tfvars \
139140 --var assume_role_arn=${{ secrets.DEPLOY_ROLE_ARN }} \
140- --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${TF_WORKSPACE_NAME }) \
141+ --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${inactive_stack }) \
141142 -out tfplan
142143
143144 - name : Save Terraform Plan
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ jobs:
165165 terraform -chdir=terraform/infrastructure plan \
166166 --var-file=etc/dev.tfvars \
167167 --var assume_role_arn=${{ secrets.DEPLOY_ROLE_ARN }} \
168- --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${TF_WORKSPACE_NAME }) \
168+ --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${{ needs.set-environment-id.outputs.environment_id } }) \
169169 -out tfplan
170170
171171 - name : Terraform Apply
You can’t perform that action at this time.
0 commit comments