From 4e909b4fcce9bca2fe261129f842c42a97962ae5 Mon Sep 17 00:00:00 2001 From: Nathan Norton Date: Sun, 25 Aug 2024 11:20:20 -0700 Subject: [PATCH] Adding role session name and customizatin of IAM role --- .github/workflows/prime-generator-python.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prime-generator-python.yaml b/.github/workflows/prime-generator-python.yaml index c60afae..86ba838 100644 --- a/.github/workflows/prime-generator-python.yaml +++ b/.github/workflows/prime-generator-python.yaml @@ -26,7 +26,8 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/GHAWS + role-to-assume: ${{ secrets.GH_ACTIONS_IAM_ROLE }} + role-session-name: GHActionsOIDC aws-region: us-east-1 - name: Login to Amazon ECR