Skip to content

Instantly share code, notes, and snippets.

@111a5ab1
Last active December 2, 2019 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 111a5ab1/83c71ed1f842476eb08dc6c6c741ed62 to your computer and use it in GitHub Desktop.
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
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