-
-
Save giovanni-bertoncelli/bd64a3d6baa58c9ee3ec2738c460890c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aws_key=$(cat ~/.aws/credentials | grep -A 2 default | grep key_id | awk '{print $3}') | |
aws_secret=$(cat ~/.aws/credentials | grep -A 2 default | grep secret | awk '{print $3}') | |
kubectl create secret generic aws-credentials \ | |
--from-literal key=$aws_key \ | |
--from-literal secret=$aws_secret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment