diff --git a/.github/workflows/terragrunt-apply-production.yml b/.github/workflows/terragrunt-apply-production.yml index 85a787191..fdfbe21e1 100644 --- a/.github/workflows/terragrunt-apply-production.yml +++ b/.github/workflows/terragrunt-apply-production.yml @@ -68,7 +68,7 @@ jobs: - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 with: - role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply-release + role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply role-session-name: TFApply aws-region: ${{ env.AWS_REGION }} @@ -100,7 +100,7 @@ jobs: - name: Tag and push Lambda images uses: ./.github/workflows/tag-and-push-lambda-images with: - aws-role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply-release + aws-role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply aws-role-session-name: TFApply aws-region: ${{ env.AWS_REGION }} lambda-name: ${{ matrix.image }} @@ -125,7 +125,7 @@ jobs: - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 with: - role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply-release + role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply role-session-name: TFApply aws-region: ${{ env.AWS_REGION }} @@ -220,7 +220,7 @@ jobs: - name: Request Lambda functions to use new image uses: ./.github/workflows/request-lambda-functions-to-use-new-image with: - aws-role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply-release + aws-role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/forms-terraform-apply aws-role-session-name: TFApply aws-region: ${{ env.AWS_REGION }} lambda-name: ${{ matrix.image }} diff --git a/.github/workflows/terragrunt-plan-production.yml b/.github/workflows/terragrunt-plan-production.yml index c1a8b802c..db178d157 100644 --- a/.github/workflows/terragrunt-plan-production.yml +++ b/.github/workflows/terragrunt-plan-production.yml @@ -51,35 +51,15 @@ jobs: with: is-tagged: ${{ !startsWith(github.head_ref, 'release-please--') }} # If not the release PR branch, assume it is a revert PR - detect-lambda-changes: - needs: get-version - runs-on: ubuntu-latest - env: - VERSION: ${{ needs.get-version.outputs.version }} - outputs: - lambda-to-rebuild: ${{ steps.filter.outputs.changes }} - steps: - - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - with: - ref: ${{ env.VERSION }} - - - name: Filter - id: filter - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 - with: - filters: .github/lambda-filter.yml - test-lambda-code: - needs: [get-version, detect-lambda-changes] - if: needs.detect-lambda-changes.outputs.lambda-to-rebuild != '[]' + needs: get-version runs-on: ubuntu-latest env: VERSION: ${{ needs.get-version.outputs.version }} strategy: fail-fast: false matrix: - image: ${{ fromJSON(needs.detect-lambda-changes.outputs.lambda-to-rebuild) }} + image: [audit-logs, audit-logs-archiver, cognito-email-sender, cognito-pre-sign-up, form-archiver, nagware, notify-slack, reliability, reliability-dlq-consumer, response-archiver, submission, vault-integrity] steps: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 @@ -93,15 +73,14 @@ jobs: lambda-name: ${{ matrix.image }} build-lambda-images: - needs: [get-version, detect-lambda-changes] - if: needs.detect-lambda-changes.outputs.lambda-to-rebuild != '[]' + needs: get-version runs-on: ubuntu-latest env: VERSION: ${{ needs.get-version.outputs.version }} strategy: fail-fast: false matrix: - image: ${{ fromJSON(needs.detect-lambda-changes.outputs.lambda-to-rebuild) }} + image: [audit-logs, audit-logs-archiver, cognito-email-sender, cognito-pre-sign-up, form-archiver, nagware, notify-slack, reliability, reliability-dlq-consumer, response-archiver, submission, vault-integrity] steps: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6