Skip to content

Instantly share code, notes, and snippets.

@tjamet
Created January 16, 2020 16:14
Show Gist options
  • Save tjamet/d9ea2e8cae114d1cb86a3ace98286585 to your computer and use it in GitHub Desktop.
Save tjamet/d9ea2e8cae114d1cb86a3ace98286585 to your computer and use it in GitHub Desktop.
Some tricks around Kubectl
# Create an AWS secret from a kubernetes one
kubectl get secret my-secret -o json | jq -r '.data | map_values(.| @base64d | fromjson)' |\
aws secretsmanager create-secret --name my-secret --secret-string file:///dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment