Skip to content

Instantly share code, notes, and snippets.

@jsugarman
Created July 22, 2019 11:15
Show Gist options
  • Save jsugarman/b8f509d0cbb7f7fe1cba13c8d6fd669d to your computer and use it in GitHub Desktop.
Save jsugarman/b8f509d0cbb7f7fe1cba13c8d6fd669d to your computer and use it in GitHub Desktop.
read AWS_ACCESS_KEY_ID ARN URL AWS_SECRET_ACCESS_KEY <<<$(kubectl --context <context> -n <namespace> get secret <secret> -o json | jq -r '.data[] | @base64d'); printf "$AWS_ACCESS_KEY_ID\n$ARN\n$URL\n$AWS_SECRET_ACCESS_KEY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment