Skip to content

Instantly share code, notes, and snippets.

View voron's full-sized avatar

Oleksandr Vorona voron

View GitHub Profile
@voron
voron / cache-eks-token.sh
Last active May 15, 2023 15:32 — forked from tyzbit/cache-eks-token.sh
Cache EKS tokens for kubectl
#!/bin/bash
# usage mimics aws execution to replace just the command, not args
function usage() {
echo "Usage: $0 --region eu-west-2 eks get-token --cluster-name prod"
}
if [ -z "$1" ]; then
usage
exit 1