Skip to content

Commit

Permalink
switch aws creds to role-based
Browse files Browse the repository at this point in the history
  • Loading branch information
okorolov committed Jul 8, 2024
1 parent 81178d9 commit 5a81879
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- 'master'

permissions:
id-token: write
contents: read

jobs:
build:
name: Build Images
Expand All @@ -26,8 +30,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ACCESS_ROLE_DEV }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
Expand Down

0 comments on commit 5a81879

Please sign in to comment.