Skip to content

Commit

Permalink
update aws creds
Browse files Browse the repository at this point in the history
  • Loading branch information
CherryUmaporn committed Sep 20, 2024
1 parent e5300e1 commit baf7645
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/example-build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Configure AWS credentials with session token
uses: aws-actions/configure-aws-credentials@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} # Use the session token
aws-region: us-east-1 # Change to your AWS region
role-to-assume: arn:aws:iam::697698820969:role/GithubActionAssumeRole
aws-region: us-east-1

- name: Log in to Amazon ECR
id: login-ecr
Expand Down

0 comments on commit baf7645

Please sign in to comment.