(more) securely storing my AWS credentials

In that post I started storing my AWS credentials in my .bash_profile. It’s
worked great for a while, but there’s been one thing that’s bothered me about
it: my credentials were stored in plain text in my .bash_profile. Not
awesome.

So I set out to fix it. The first step was to remove all the aws credential
functions and instead move them to their own file. I named it
.bash_aws_profiles. I then encrypted it with openssl using the aes-256
cipher with the following command:

Next you need a way to get those functions back into your shell. I tried to
do this by having source or eval read in the output from openssl
unencrypting the file, but neither of them worked for me for various reasons.
In the end I had to use a temporary file, which I’m not super excited about,
but it only exists for a very short period of time, which is better than what
we had before.