Created
June 25, 2010 20:45
-
-
Save innerfence/453419 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 | |
# I use this script to bootstrap the use of a couple of S3 tools, including | |
# - Net::Amazon::S3::Tools from CPAN, written in perl | |
# - s3sync rubygem (including the s3cmd utility) | |
# Put your access key here | |
export AWS_ACCESS_KEY_ID=accesskey | |
# This will prompt for the decryption passphrase | |
# To generate the encrypted version, use the same openssl command without the -d | |
# This example is the word 'secretkey' encrypted with 'passphrase' | |
export AWS_ACCESS_KEY_SECRET=$(openssl enc -d -a -aes-256-cbc -salt <<EOF | |
U2FsdGVkX1+ssCcPY1w25f8tWqJxfsWCANMpffhXjbc= | |
EOF | |
) | |
export AWS_SECRET_ACCESS_KEY=${AWS_ACCESS_KEY_SECRET} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment