Skip to content

Commit

Permalink
using oidc authentication and bumping actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cristidas committed Jun 12, 2024
1 parent 381a4c2 commit ea601f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/aws-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.EKS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.EKS_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GA_OIDC_LAMBDA_PROD }}
role-session-name: chainlog-prod
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
atomic: true

- name: Deploying Chainlog Logger to Kubernetes with Helm
uses: bitovi/[email protected].4
uses: bitovi/[email protected].9
with:
values: image.repository=${{ steps.login-ecr.outputs.registry }}/chainlog-logger-prod,image.tag=${{ steps.vars.outputs.sha_short }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/aws-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ on:
push:
branches:
- dev
- TECH-3252-update-iam

name: Deploy to AWS Staging (K8s)

permissions:
id-token: write
contents: read

jobs:
deploy:
name: Deploy
Expand All @@ -16,13 +21,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.EKS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.EKS_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GA_OIDC_LAMBDA_PROD }}
role-session-name: chainlog-staging
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
Expand Down Expand Up @@ -96,7 +101,7 @@ jobs:
atomic: true

- name: Deploying Chainlog Logger to Kubernetes with Helm
uses: bitovi/[email protected].4
uses: bitovi/[email protected].9
with:
values: image.repository=${{ steps.login-ecr.outputs.registry }}/chainlog-logger-staging,image.tag=${{ steps.vars.outputs.sha_short }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand Down

0 comments on commit ea601f6

Please sign in to comment.