diff --git a/.github/workflows/workflow_path_to_live.yml b/.github/workflows/workflow_path_to_live.yml index d14d392..5b48dba 100644 --- a/.github/workflows/workflow_path_to_live.yml +++ b/.github/workflows/workflow_path_to_live.yml @@ -128,3 +128,24 @@ jobs: AWS_ACCESS_KEY_ID_ACTIONS: ${{ secrets.AWS_ACCESS_KEY_ID_ACTIONS }} AWS_SECRET_ACCESS_KEY_ACTIONS: ${{ secrets.AWS_SECRET_ACCESS_KEY_ACTIONS }} PAGERDUTY_TOKEN: "" + + terraform_integration_environment_apply: + name: Terraform - Integration - Environment - Apply + needs: + - set_variables + - docker_build_scan_push + - terraform_prod_environment_apply + + uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0 + with: + terraform_version: ${{ needs.set_variables.outputs.environment_terraform_version }} + terraform_directory: "./terraform/environment" + terraform_workspace: integration + is_ephemeral: false + terraform_apply: true + terraform_variables: "-var=lambda_image_uri=${{ needs.docker_build_scan_push.outputs.ecr_image_uri }}" + secrets: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AWS_ACCESS_KEY_ID_ACTIONS: ${{ secrets.AWS_ACCESS_KEY_ID_ACTIONS }} + AWS_SECRET_ACCESS_KEY_ACTIONS: ${{ secrets.AWS_SECRET_ACCESS_KEY_ACTIONS }} + PAGERDUTY_TOKEN: ""