Skip to content

Commit

Permalink
fix: use iam role in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dnnnvx committed Mar 3, 2023
1 parent 685e072 commit d663c7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.REG_ID }}
aws-secret-access-key: ${{ secrets.REG_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::403372804574:role/github-actions
role-session-name: github-actions-role-session
aws-region: us-east-2
- name: Amazon ECR login
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build React App
env:
NODE_OPTIONS: "--max_old_space_size=4096"
Expand Down

0 comments on commit d663c7e

Please sign in to comment.