# Can't connect okteto to eks using the vscode extension

**URL:** <https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470>\
**Category:** Help\
**Created:** [December 20, 2022, 11:54am UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470 "2022-12-20T11:54:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@alon](https://community.okteto.com/u/alon)\
**Post date:** [December 20, 2022, 11:54am UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470/1 "2022-12-20T11:54:19Z")

</div>

When trying to set up okteto eks context / okteto up from vscode I get:  
**Command ‘Okteto: Set the context for all the Okteto commands’ resulted in an error (Context was not created, check your terminal for errors)**  
.okteto-vscode/okteto context use arn:aws:eks:us-east-1:xxxxxxxxx:cluster/  
x Exec plugin: invalid apiVersion “[client.authentication.k8s.io/v1alpha1](http://client.authentication.k8s.io/v1alpha1)”

Client Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.1”, BuildDate:“2021-08-19T15:45:37Z”, GoVersion:“go1.16.7”, Compiler:“gc”, Platform:“darwin/amd64”}  
Server Version: version.Info{Major:“1”, Minor:“23+”, GitVersion:“v1.23.13-eks-fb459a0”, BuildDate:“2022-10-24T20:35:40Z”, GoVersion:“go1.17.13”, Compiler:“gc”, Platform:“linux/amd64”}

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [December 21, 2022, 1:08am UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470/2 "2022-12-21T01:08:29Z")

</div>

This seems related to [aws eks update-kubeconfig invalid apiVersion · Issue #6920 · aws/aws-cli · GitHub](https://github.com/aws/aws-cli/issues/6920). We’re investigating.

If you open a terminal, and you run:

```auto
.okteto-vscode/okteto context use arn:aws:eks:us-east-1:xxxxxxxxx:cluster/

```

Do you get the same error?

---

<div class="post-metadata">

**Author:** ![alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@alon](https://community.okteto.com/u/alon)\
**Post date:** [December 21, 2022, 9:04am UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470/3 "2022-12-21T09:04:41Z")

</div>

Thanks for the reply, running in terminal gives same error:

okteto context use arn:aws:eks:us-east-1:xxxx  
x Exec plugin: invalid apiVersion “[client.authentication.k8s.io/v1alpha1](http://client.authentication.k8s.io/v1alpha1)”

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [December 21, 2022, 5:35pm UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470/4 "2022-12-21T17:35:35Z")

</div>

What version of the `aws cli` are you using? Can you try upgrading to the latest version? The team believes the issue is on that side of the auth handshake (okteto calls the `aws cli` to get the tokens), and that it has already been solved on the newest release.

---

<div class="post-metadata">

**Author:** ![alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@alon](https://community.okteto.com/u/alon)\
**Post date:** [December 22, 2022, 11:52am UTC](https://community.okteto.com/t/cant-connect-okteto-to-eks-using-the-vscode-extension/470/5 "2022-12-22T11:52:45Z")

</div>

aws --version  
aws-cli/2.2.34 Python/3.8.8 Darwin/20.6.0 exe/x86\_64 prompt/off
