· 7 years ago · May 29, 2018, 09:38 PM
1#!/bin/bash
2
3# I use this script to bootstrap the use of a couple of S3 tools, including
4# - Net::Amazon::S3::Tools from CPAN, written in perl
5# - s3sync rubygem (including the s3cmd utility)
6
7# Put your access key here
8export AWS_ACCESS_KEY_ID=accesskey
9
10# This will prompt for the decryption passphrase
11# To generate the encrypted version, use the same openssl command without the -d
12# This example is the word 'secretkey' encrypted with 'passphrase'
13export AWS_ACCESS_KEY_SECRET=$(openssl enc -d -a -aes-256-cbc -salt <<EOF
14U2FsdGVkX1+ssCcPY1w25f8tWqJxfsWCANMpffhXjbc=
15EOF
16)
17
18export AWS_SECRET_ACCESS_KEY=${AWS_ACCESS_KEY_SECRET}