Skip to content

Instantly share code, notes, and snippets.

View giovanni-bertoncelli's full-sized avatar

Giovanni Bertoncelli giovanni-bertoncelli

View GitHub Profile
#!/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