From aeba88e6b544bad8e0cd9fd76f820ba013136c57 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Wed, 30 Oct 2024 14:32:33 -0700 Subject: [PATCH] use role to assum Signed-off-by: Tao Liu --- .github/workflows/deployment-template.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deployment-template.yml b/.github/workflows/deployment-template.yml index 8898d3e..b27f289 100644 --- a/.github/workflows/deployment-template.yml +++ b/.github/workflows/deployment-template.yml @@ -126,10 +126,9 @@ jobs: OTEL_DATA_PREPPER_CERT: ${{ secrets.otel_data_prepper_cert }} - name: Step 6 - Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: - aws-access-key-id: ${{ secrets.access-key-id }} - aws-secret-access-key: ${{ secrets.secret-access-key }} + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_PREVIEW }}:role/ekspreviewadminrole-github aws-region: ${{ secrets.region }} - name: Step 7 - Delete Logstash