diff --git a/.github/workflows/EKS-CICD.yml b/.github/workflows/EKS-CICD.yml index a9bac20..8cdc25d 100644 --- a/.github/workflows/EKS-CICD.yml +++ b/.github/workflows/EKS-CICD.yml @@ -52,11 +52,9 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ env.AWS_REGION }} - - name: Set up Kubectl for EKS - uses: aws-actions/amazon-eks-kubectl-set-context@v1 - with: - cluster-name: ${{ env.EKS_CLUSTER_NAME }} - region: ${{ env.AWS_REGION }} + - name: Update kubeconfig for EKS + run: | + aws eks update-kubeconfig --name ${{ env.EKS_CLUSTER_NAME }} - name: Deploy to EKS run: |