From e6a01e14c44d9cf35298124a704ecb332282fab3 Mon Sep 17 00:00:00 2001 From: Monthon Klongklaew Date: Wed, 22 May 2024 10:42:37 +0100 Subject: [PATCH] Use separate IAM role for the bench CI (#883) Signed-off-by: Monthon Klongklaew --- .github/workflows/bench.yml | 12 ++++++------ .github/workflows/bench_s3express.yml | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 10cdde96c..c4475268e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -34,8 +34,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: ${{ vars.ACTIONS_IAM_ROLE }} - aws-region: ${{ vars.S3_REGION }} + role-to-assume: ${{ vars.ACTIONS_BENCH_IAM_ROLE }} + aws-region: ${{ vars.S3_BENCH_REGION }} role-duration-seconds: 21600 - name: Checkout code uses: actions/checkout@v4 @@ -79,8 +79,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: ${{ vars.ACTIONS_IAM_ROLE }} - aws-region: ${{ vars.S3_REGION }} + role-to-assume: ${{ vars.ACTIONS_BENCH_IAM_ROLE }} + aws-region: ${{ vars.S3_BENCH_REGION }} role-duration-seconds: 21600 - name: Checkout code uses: actions/checkout@v4 @@ -125,8 +125,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: ${{ vars.ACTIONS_IAM_ROLE }} - aws-region: ${{ vars.S3_REGION }} + role-to-assume: ${{ vars.ACTIONS_BENCH_IAM_ROLE }} + aws-region: ${{ vars.S3_BENCH_REGION }} role-duration-seconds: 21600 - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/bench_s3express.yml b/.github/workflows/bench_s3express.yml index fda8f038e..3457ce08c 100644 --- a/.github/workflows/bench_s3express.yml +++ b/.github/workflows/bench_s3express.yml @@ -34,8 +34,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: ${{ vars.ACTIONS_IAM_ROLE }} - aws-region: ${{ vars.S3_REGION }} + role-to-assume: ${{ vars.ACTIONS_BENCH_IAM_ROLE }} + aws-region: ${{ vars.S3_BENCH_REGION }} role-duration-seconds: 21600 - name: Checkout code uses: actions/checkout@v4 @@ -80,8 +80,8 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: ${{ vars.ACTIONS_IAM_ROLE }} - aws-region: ${{ vars.S3_REGION }} + role-to-assume: ${{ vars.ACTIONS_BENCH_IAM_ROLE }} + aws-region: ${{ vars.S3_BENCH_REGION }} role-duration-seconds: 21600 - name: Checkout code uses: actions/checkout@v4