Skip to content

Commit 74d3db7

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test-workflow.yml

+15
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@ jobs:
4343
- name: Test environment is configured with AWS credentials from role
4444
run: |
4545
aws sts get-caller-identity --query Arn | grep "role/github-actions-configure-aws-credentials-integ-tests" > /dev/null
46+
47+
- name: Configure AWS credentials from role again
48+
uses: aws-actions/configure-aws-credentials@v1
49+
with:
50+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
51+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
52+
aws-region: us-east-2
53+
role-to-assume: github-actions-configure-aws-credentials-integ-tests
54+
role-duration-seconds: 900
55+
role-session-name: github-actions-integ-test
56+
role-external-id: ${{ secrets.INTEG_TEST_ROLE_EXTERNAL_ID }}
57+
58+
- name: Test environment is configured with AWS credentials from role
59+
run: |
60+
aws sts get-caller-identity --query Arn | grep "role/github-actions-configure-aws-credentials-integ-tests" > /dev/null

0 commit comments

Comments
 (0)