Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
anchor

GitHub Action

Helm on EKS (with aws-iam-authenticator)

v1.3

Helm on EKS (with aws-iam-authenticator)

anchor

Helm on EKS (with aws-iam-authenticator)

Authenticates on EKS clusters using aws-iam-authenticator and executes Helm commands. Can also be used with kubectl commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Helm on EKS (with aws-iam-authenticator)

uses: koslib/[email protected]

Learn more about this action in koslib/helm-eks-action

Choose a version

helm-eks-action

Github Action for executing Helm commands on EKS (using aws-iam-authenticator).

This action was inspired by kubernetes-action.

Instructions

This Github Action was created with EKS in mind, therefore the following example refers to it.

Example

name: deploy

on:
    push:
        branches:
            - master
            - develop

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-1

      - name: helm deploy
        uses: koslibpro/helm-eks-action@master
        env:
          KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
        with:
          command: helm upgrade <release name> --install --wait <chart> -f <path to values.yaml>

Secrets

Create a GitHub Secret for each of the following values:

  • KUBE_CONFIG_DATA Your kube config file in base64-encrypted form. You can do that with
cat $HOME/.kube/config | base64
  • AWS_ACCESS_KEY_ID

  • AWS_SECRET_ACCESS_KEY

Contributions

Pull requests, issues or feedback of any kind are more than welcome by anyone!