Skip to content

Instantly share code, notes, and snippets.

@innerfence
Created June 25, 2010 20:45
Show Gist options
  • Save innerfence/453419 to your computer and use it in GitHub Desktop.
Save innerfence/453419 to your computer and use it in GitHub Desktop.
#!/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