Skip to content

Commit 6845627

Browse files
committed
feat: Test repeated assume-role
1 parent bc072de commit 6845627

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test-workflow.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ jobs:
4040
role-session-name: github-actions-integ-test
4141
role-external-id: ${{ secrets.INTEG_TEST_ROLE_EXTERNAL_ID }}
4242

43+
- name: Configure AWS credentials from role again
44+
uses: aws-actions/configure-aws-credentials@v1
45+
with:
46+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
47+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
48+
aws-region: us-east-2
49+
role-to-assume: github-actions-configure-aws-credentials-integ-tests
50+
role-duration-seconds: 900
51+
role-session-name: github-actions-integ-test
52+
role-external-id: ${{ secrets.INTEG_TEST_ROLE_EXTERNAL_ID }}
53+
4354
- name: Test environment is configured with AWS credentials from role
4455
run: |
4556
aws sts get-caller-identity --query Arn | grep "role/github-actions-configure-aws-credentials-integ-tests" > /dev/null

0 commit comments

Comments
 (0)