Skip to content

Commit

Permalink
build: update to use iam roles (oidc), no longer access keys (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-iov authored May 6, 2024
1 parent 07eb9ae commit cd2b4b6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.boltz.testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.BOLTZ_TESTNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.BOLTZ_TESTNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.BOLTZ_TESTNET_ROLE_ARN }}
aws-region: "${{ secrets.BOLTZ_TESTNET_AWS_REGION }}"

- name: Deploy rif-relay-server on Boltz Testnet
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.QA_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.QA_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.QA_ROLE_ARN }}
aws-region: ${{ secrets.QA_AWS_REGION }}

- name: Deploy rif-relay-server on QA
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.rwm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.RWM_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.RWM_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.RWM_ROLE_ARN }}
aws-region: ${{ secrets.RWM_AWS_REGION }}

- name: Deploy rif-relay-server on RIF-Wallet Mainnet
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.rwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.RWT_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.RWT_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.RWT_ROLE_ARN }}
aws-region: ${{ secrets.RWT_AWS_REGION }}

- name: Deploy rif-relay-server on RWT
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.TESTNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TESTNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: ${{ secrets.TESTNET_AWS_REGION }}

- name: Deploy rif-relay-server on TESTNET
Expand Down

0 comments on commit cd2b4b6

Please sign in to comment.