Skip to content

Instantly share code, notes, and snippets.

@tmiller
Last active August 11, 2016 20:13
Show Gist options
  • Save tmiller/129ac78d682f6829302578fc847dbf82 to your computer and use it in GitHub Desktop.
Save tmiller/129ac78d682f6829302578fc847dbf82 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Encrypt AWS Keys
gpg -ar <email-address> -e ~/.aws/credentials
# Decrypt AWS Keys
gpg -d ~/.aws/credentails.asc > ~/.aws/credentials
# Delete file when done working
srm ~/.aws/credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment