File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,13 @@ jobs:
121121 terraform -chdir=terraform/infrastructure workspace select ${inactive_stack}
122122
123123 - name : Terraform Plan
124+ env :
125+ DEPLOY_ROLE_ARN : ${{ secrets.DEPLOY_ROLE_ARN }}
124126 run : |
125127 inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
126128 terraform -chdir=terraform/infrastructure plan \
127129 --var-file=etc/${{ vars.ACCOUNT_NAME }}.tfvars \
128- --var assume_role_arn=${{ secrets. DEPLOY_ROLE_ARN } } \
130+ --var assume_role_arn=${DEPLOY_ROLE_ARN} \
129131 --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${inactive_stack}) \
130132 -out tfplan
131133
Original file line number Diff line number Diff line change @@ -150,10 +150,12 @@ jobs:
150150 terraform -chdir=terraform/infrastructure workspace select ${{ needs.set-environment-id.outputs.environment_id }}
151151
152152 - name : Terraform Plan
153+ env :
154+ DEPLOY_ROLE_ARN : ${{ secrets.DEPLOY_ROLE_ARN }}
153155 run : |
154156 terraform -chdir=terraform/infrastructure plan \
155157 --var-file=etc/dev.tfvars \
156- --var assume_role_arn=${{ secrets. DEPLOY_ROLE_ARN } } \
158+ --var assume_role_arn=${DEPLOY_ROLE_ARN} \
157159 --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${{ needs.set-environment-id.outputs.environment_id }}) \
158160 -out tfplan
159161
@@ -286,6 +288,8 @@ jobs:
286288
287289 - name : Configure Dev Account Credentials
288290 uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
291+ env :
292+ DEPLOY_ROLE_ARN : ${{ secrets.DEPLOY_ROLE_ARN }}
289293 with :
290294 aws-region : eu-west-2
291295 role-chaining : true
Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ jobs:
8080 run : make build get-s3-perms
8181
8282 - name : Terraform Destroy
83+ env :
84+ DEPLOY_ROLE_ARN : ${{ secrets.DEPLOY_ROLE_ARN }}
8385 run : |
8486 terraform -chdir=terraform/infrastructure destroy \
8587 --var-file=etc/dev.tfvars \
86- --var assume_role_arn=${{ secrets. DEPLOY_ROLE_ARN } } \
88+ --var assume_role_arn=${DEPLOY_ROLE_ARN} \
8789 -auto-approve
8890
8991 - name : Cleanup Terraform Workspace
Original file line number Diff line number Diff line change @@ -193,10 +193,12 @@ jobs:
193193 terraform -chdir=terraform/infrastructure workspace select ${{ inputs.stack_name }}
194194
195195 - name : Terraform Plan
196+ env :
197+ DEPLOY_ROLE_ARN : ${{ secrets.DEPLOY_ROLE_ARN }}
196198 run : |
197199 terraform -chdir=terraform/infrastructure plan \
198200 --var-file=etc/${{ vars.ACCOUNT_NAME }}.tfvars \
199- --var assume_role_arn=${{ secrets. DEPLOY_ROLE_ARN } } \
201+ --var assume_role_arn=${DEPLOY_ROLE_ARN} \
200202 --var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${{ inputs.stack_name }}) \
201203 --out tfplan
202204
You can’t perform that action at this time.
0 commit comments