Giter VIP home page Giter VIP logo

Comments (5)

MKRNaqeebi avatar MKRNaqeebi commented on August 22, 2024 4

You can use this

    - id: install-aws-cli
      uses: unfor19/install-aws-cli-action@v1
    - run: aws eks update-kubeconfig --region us-east-1 --name cluster1
    - run: kubectl get pods

from kubectl.

exelban avatar exelban commented on August 22, 2024

Hi. Thanks for the feedback.
It looks like you need to have installed aws cli to connect to the EKS cluster. This action does not have this cli. And I'm not sure that it will be added. The best option will be to find some AWS action and use it.

from kubectl.

Gajeski avatar Gajeski commented on August 22, 2024

Hi I have the same error:

Unable to connect to the server: getting credentials: exec: executable aws not found

It looks like you are trying to use a client-go credential plugin that is not installed.

To learn more about this feature, consult the documentation available at:
      https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

But the aws cli is present because running

aws --version

works and gives expected output. Github hosted VMs are supposed to have the aws cli installed and by the looks of it they do, so how can the aws exe be not present ?

Workflow code:

steps:
    - name: aws v check
      run: aws --version
    
    - name: Deploy to dev
      uses: actions-hub/kubectl@master
      env:
        KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
      with:
        args: apply -f k8s/dev/k8s.yml
    

from kubectl.

gotchipete avatar gotchipete commented on August 22, 2024

Any updates here? Running into the same...

from kubectl.

corpulent avatar corpulent commented on August 22, 2024

@MKRNaqeebi this works, but where does the kubectl command get installed exactly? From unfor19/install-aws-cli-action@v1?

from kubectl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.