kubefwd icon indicating copy to clipboard operation
kubefwd copied to clipboard

aws eks: The config profile (prod/administrators) could not be found

Open dmitry-mightydevops opened this issue 9 months ago • 0 comments

✗  kg svc                               
NAME         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
deathstar    ClusterIP   172.20.180.218   <none>        80/TCP    35d
kubernetes   ClusterIP   172.20.0.1       <none>        443/TCP   81d

sudo kubefwd -c ~/.kube/config svc default

INFO[17:28:08]  _          _           __             _     
INFO[17:28:08] | | ___   _| |__   ___ / _|_      ____| |    
INFO[17:28:08] | |/ / | | | '_ \ / _ \ |_\ \ /\ / / _  |    
INFO[17:28:08] |   <| |_| | |_) |  __/  _|\ V  V / (_| |    
INFO[17:28:08] |_|\_\\__,_|_.__/ \___|_|   \_/\_/ \__,_|    
INFO[17:28:08]                                              
INFO[17:28:08] Version 1.22.5                               
INFO[17:28:08] https://github.com/txn2/kubefwd              
INFO[17:28:08]                                              
INFO[17:28:08] Press [Ctrl-C] to stop forwarding.           
INFO[17:28:08] 'cat /etc/hosts' to see all host entries.    
INFO[17:28:08] Loaded hosts file /etc/hosts                 
INFO[17:28:08] HostFile management: Original hosts backup already exists at /root/hosts.original 
INFO[17:28:08] Using namespace default from current context arn:aws:eks:us-east-1:xxx:cluster/prod-eks. 

The config profile (prod/administrators) could not be found
FATA[17:28:08] Error connecting to k8s cluster: Get "https://XXXX.gr7.us-east-1.eks.amazonaws.com/version": getting credentials: exec: executable aws failed with exit code 255 

is it possible to work with aws eks ?

without copying the following dirs into root

  • ~/.aws/config
  • ~/.password-store

dmitry-mightydevops avatar Sep 30 '23 22:09 dmitry-mightydevops