AWS EKS with Kubectl
ActionsTags
(2)This GitHub Actions action allows you to deploy to AWS EKS (Elastic Kubernetes Service) using kubectl
. It provides a convenient way to interact with your AWS EKS cluster.
aws-access-key-id
(required): The AWS access key ID.aws-secret-access-key
(required): The AWS secret access key.aws-region
(required): The AWS region where your EKS cluster is located.cluster-name
(required): The name of your EKS cluster.command
(required): Thekubectl
command to run.kubectl-version
(optional): The version ofkubectl
to use. If not provided, the latest version will be used.
kubernetes
: The output of thekubectl
command.
name: Deploy to AWS EKS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy to AWS EKS
uses: giovannirossini/[email protected]
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-east-1"
cluster-name: "my-eks-cluster"
kubectl-version: "1.27"
command: |
kubectl apply -f stage/deployment.yaml
Ensure that you have set up the required AWS access credentials as secrets in your repository to securely provide them to the action.
Note: Make sure to replace 'us-east-1'
and 'my-eks-cluster'
with your AWS region and EKS cluster name, respectively.
For more information on AWS EKS, please refer to the official documentation.
For more information on using Kubernetes with AWS EKS, please refer to the official Kubernetes documentation.
Please Note: It is recommended to follow AWS security best practices and manage access keys and secrets with care.
AWS EKS with Kubectl is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.