Skip to content

Instantly share code, notes, and snippets.

@ismailyenigul
Created March 9, 2021 15:23
Show Gist options
  • Save ismailyenigul/4bf0c45f57ad823e9ab956a683e1de77 to your computer and use it in GitHub Desktop.
Save ismailyenigul/4bf0c45f57ad823e9ab956a683e1de77 to your computer and use it in GitHub Desktop.

I use aws-vault with Yubikey to access AWS resources.

Lens is great Desktop tool to see/manage all k8s resources.

The following commands help me to open Lens The Kubernetes IDE the right EKS cluster on MacOS

# aws-vault  exec -d 12h --prompt ykman my-profile -- 
# aws eks update-kubeconfig --name my-eks-cluster  #switch to the right cluster
# /Applications/Lens.app/Contents/MacOS/Lens
@fjunqueira
Copy link

fjunqueira commented Feb 8, 2022

aws-vault exec profile --server

@gorkemgoknar
Copy link

This below works for me on ubuntu 20.X local

#  1. create a new terminal with aws-vault context
aws-vault  exec my-profile -- bash
# 2. update eks if not updated
aws eks update-kubeconfig --name my-eks-cluster
# 3. switch to correct kubeconfig  (I use kubectx as have multiple eks clusters)
kubectx PROFILE
# 4. Open lens (within the new terminal context)
lens # or whatever your lens path is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment