Issue between Jenkins, aws cli and linux?

I have an issue with my CI/CD pipeline : I’m deploying a production environnement
on AWS EKS , I registered all the aws credentials & kubeconfig .
But the pipeline fails at :
aws eks update-kubeconfig --name “eks-name”
with the following output :

Can't open kubeconfig for writing: [Errno 13] Permission denied: ****

The folder/file .kube/config are 666 (rw-rw-rw)
Don’t know whether it’s an issue with my Jenkinsfile , Linux permissions or aws cli

If you have an idea feel free to share



Well just needed to add the --kubeconfig flag pointing to the .kube/config file :roll_eyes: