Skip to content

Commit

Permalink
deploy workflows: add aws authentication step
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Jan 23, 2024
1 parent 9ab6577 commit 4d8fab3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ jobs:
environment: production
needs: [build_push]
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}

- name: Get Currently Running Task Definition
id: get-current-task-definition
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ jobs:
environment: staging
needs: [build_push]
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}

- name: Get Currently Running Task Definition
id: get-current-task-definition
run: |
Expand Down

0 comments on commit 4d8fab3

Please sign in to comment.