@@ -82,14 +82,15 @@ jobs:
8282 -var assume_role=terraform \
8383 -out tfplan
8484
85- - name : Save Terraform Plan
85+ - name : Save Terraform Plan Artifacts
8686 env :
8787 ACCOUNT_NAME : ${{ vars.ACCOUNT_NAME }}
8888 run : |
8989 terraform -chdir=terraform/account-wide-infrastructure/${ACCOUNT_NAME} show -no-color tfplan > terraform/account-wide-infrastructure/$ACCOUNT_NAME/tfplan.txt
9090
9191 aws s3 cp terraform/account-wide-infrastructure/$ACCOUNT_NAME/tfplan s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/tfplan
9292 aws s3 cp terraform/account-wide-infrastructure/$ACCOUNT_NAME/tfplan.txt s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/tfplan.txt
93+ aws s3 cp terraform/account-wide-infrastructure/modules/glue/files/src.zip s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/glue-src.zip
9394
9495 terraform-apply :
9596 name : Terraform Apply - ${{ inputs.environment }}
@@ -115,10 +116,15 @@ jobs:
115116 role-to-assume : ${{ secrets.MGMT_ROLE_ARN }}
116117 role-session-name : github-actions-ci-${{ inputs.environment }}-${{ github.run_id}}
117118
118- - name : Download Terraform Plan artifact
119+ - name : Download Terraform Plan Artifacts
119120 env :
120121 ACCOUNT_NAME : ${{ vars.ACCOUNT_NAME }}
121- run : aws s3 cp s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/tfplan terraform/account-wide-infrastructure/${ACCOUNT_NAME}/tfplan
122+ run : |
123+ aws s3 cp s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/tfplan terraform/account-wide-infrastructure/${ACCOUNT_NAME}/tfplan
124+ aws s3 cp s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/tfplan.txt terraform/account-wide-infrastructure/${ACCOUNT_NAME}/tfplan.txt
125+
126+ mkdir -p terraform/account-wide-infrastructure/modules/glue/files
127+ aws s3 cp s3://nhsd-nrlf--mgmt--github-ci-logging/acc-$ACCOUNT_NAME/${{ github.run_id }}/glue-src.zip terraform/account-wide-infrastructure/modules/glue/files/src.zip
122128
123129 - name : Retrieve Server Certificates
124130 env :
0 commit comments