From 69548f6968bf0e49f22efde3bf17564c65059ff1 Mon Sep 17 00:00:00 2001 From: anthony-nhs <121869075+anthony-nhs@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:06:18 +0000 Subject: [PATCH] Chore: [AEA-0000] - fix AWS session name in github actions (#677) ## Summary - Routine Change ### Details - fix AWS session name in github actions --- .github/actions/mark_jira_released/action.yml | 2 +- .github/actions/update_confluence_jira/action.yml | 6 +++--- .github/workflows/delete_old_cloudformation_stacks.yml | 4 ++-- .github/workflows/run_release_code_and_api.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/mark_jira_released/action.yml b/.github/actions/mark_jira_released/action.yml index 1b7826f9..474e4508 100644 --- a/.github/actions/mark_jira_released/action.yml +++ b/.github/actions/mark_jira_released/action.yml @@ -16,7 +16,7 @@ runs: with: aws-region: eu-west-2 role-to-assume: ${{ inputs.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - role-session-name: account-resources-release-notes-run-lambda + role-session-name: cpt-api-release-notes-run-lambda - name: call markJiraReleased lambda shell: bash diff --git a/.github/actions/update_confluence_jira/action.yml b/.github/actions/update_confluence_jira/action.yml index e9e3314d..474eaf33 100644 --- a/.github/actions/update_confluence_jira/action.yml +++ b/.github/actions/update_confluence_jira/action.yml @@ -32,7 +32,7 @@ runs: with: aws-region: eu-west-2 role-to-assume: ${{ inputs.TARGET_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - role-session-name: account-resources-release-notes-target + role-session-name: cpt-api-release-notes-target - name: Get deployed tag on target shell: bash @@ -46,7 +46,7 @@ runs: with: aws-region: eu-west-2 role-to-assume: ${{ inputs.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }} - role-session-name: account-resources-release-notes-dev + role-session-name: cpt-api-release-notes-dev - name: get current dev tag shell: bash @@ -58,7 +58,7 @@ runs: with: aws-region: eu-west-2 role-to-assume: ${{ inputs.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }} - role-session-name: account-resources-release-notes-run-lambda + role-session-name: cpt-api-release-notes-run-lambda unset-current-credentials: true - name: create int release notes diff --git a/.github/workflows/delete_old_cloudformation_stacks.yml b/.github/workflows/delete_old_cloudformation_stacks.yml index eac2ea19..d2d521c6 100644 --- a/.github/workflows/delete_old_cloudformation_stacks.yml +++ b/.github/workflows/delete_old_cloudformation_stacks.yml @@ -30,7 +30,7 @@ jobs: with: aws-region: eu-west-2 role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }} - role-session-name: github-actions + role-session-name: cpt-api-delete-old-stacks - name: delete stacks shell: bash @@ -57,7 +57,7 @@ jobs: with: aws-region: eu-west-2 role-to-assume: ${{ secrets.PROXYGEN_PTL_ROLE }} - role-session-name: delete-old-proxygen + role-session-name: cpt-api-delete-old-proxygen - name: delete proxygen deployments shell: bash diff --git a/.github/workflows/run_release_code_and_api.yml b/.github/workflows/run_release_code_and_api.yml index 7d602c58..500a5165 100644 --- a/.github/workflows/run_release_code_and_api.yml +++ b/.github/workflows/run_release_code_and_api.yml @@ -103,7 +103,7 @@ jobs: with: aws-region: eu-west-2 role-to-assume: ${{ secrets.CLOUD_FORMATION_DEPLOY_ROLE }} - role-session-name: github-actions + role-session-name: cpt-api-release-code - name: Download build artifact uses: actions/download-artifact@v4 @@ -147,7 +147,7 @@ jobs: with: aws-region: eu-west-2 role-to-assume: ${{ secrets.PROXYGEN_ROLE }} - role-session-name: proxygen-ptl + role-session-name: cpt-api-proxygen - name: Deploy CPT API shell: bash