<p>In the <a href="https://open-vsx.org/extension/ms-kubernetes-tools/vscode-kubernetes-tools" rel="nofollow noreferrer">VS Code Kubernetes Extension</a>, I am getting an error when I try to Access resources in my cluster.</p>
<p>I have updated my ~/.kube/config with the correct data and general format</p>
<h2>.kube/config</h2>
<pre><code>apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: M1ekNDQWMrZ0F3SUJBZ0lCQURB...
    server: https://{yadayada}.gr7.us-east-1.eks.amazonaws.com
  name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
contexts:
- context:
    cluster: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
    user: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
  name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
current-context: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - --region
      - us-east-1
      - eks
      - get-token
      - --cluster-name
      - eventplatform
      command: aws
</code></pre>
<h2>ERROR</h2>
<p><a href="https://i.stack.imgur.com/LoABO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LoABO.png" alt="enter image description here" /></a></p>

Hofbr
<p>The solution to add my AWS credential ENV variables:</p>
<pre><code>apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: M1ekNDQWMrZ0F3SUJBZ0lCQURB...
    server: https://{yadayada}.gr7.us-east-1.eks.amazonaws.com
  name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
contexts:
- context:
    cluster: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
    user: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
  name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
current-context: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-east-1:{yada}:cluster/eventplatform
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - --region
      - us-east-1
      - eks
      - get-token
      - --cluster-name
      - eventplatform
      command: aws
      env:
      - name: AWS_ACCESS_KEY_ID
        value: {SOME_VALUES}
      - name: AWS_SECRET_ACCESS_KEY 
        value: {SOME_OTHER_VALUES}
      - name: AWS_SESSION_TOKEN 
        value: {SOME_OTHER_OTHER_VALUES}
</code></pre>
