Skip to content

Commit 1d9eb12

Browse files
committed
get AWS credentials in test
1 parent a9419a4 commit 1d9eb12

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
with:
2929
terraform_version: 1.12.2
3030

31+
- uses: aws-actions/configure-aws-credentials@v4
32+
with:
33+
role-to-assume: arn:aws:iam::298118738376:role/GitHubActionsRole
34+
role-session-name: Core_Prod_Test_${{ github.run_id }}
35+
aws-region: us-east-1
36+
3137
- name: Restore Yarn Cache
3238
uses: actions/cache@v4
3339
with:

.github/workflows/deploy-qa.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
restore-keys: |
4141
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
4242
43+
44+
- uses: aws-actions/configure-aws-credentials@v4
45+
with:
46+
role-to-assume: arn:aws:iam::298118738376:role/GitHubActionsRole
47+
role-session-name: Core_QA_Test_${{ github.run_id }}
48+
aws-region: us-east-1
49+
4350
- name: Run unit testing
4451
run: make test_unit
4552

@@ -138,7 +145,7 @@ jobs:
138145
- uses: aws-actions/configure-aws-credentials@v4
139146
with:
140147
role-to-assume: arn:aws:iam::427040638965:role/GitHubActionsRole
141-
role-session-name: Core_Dev_Deployment_${{ github.run_id }}
148+
role-session-name: Core_QA_Deployment_${{ github.run_id }}
142149
aws-region: us-east-1
143150

144151
- name: Publish to AWS

0 commit comments

Comments
 (0)