Last active
December 2, 2019 23:45
-
-
Save 111a5ab1/83c71ed1f842476eb08dc6c6c741ed62 to your computer and use it in GitHub Desktop.
One liner to create an AWS CLI "credentials" file from a downloaded accessKeys.csv
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
while IFS=, read -r id secret; do echo -e "[default]\naws_access_key_id = $id\naws_secret_access_key = $secret" > credentials; done <<< $(tail -n1 accessKeys.csv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment