daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. creds_file="$PWD/creds.json";
  4.  
  5. if [ ! -z "$1" ]; then
  6.     creds_file="$1";
  7. fi;
  8.  
  9. creds=`echo $(cat $creds_file | jq '.Credentials')`;
  10.  
  11. export AWS_ACCESS_KEY_ID=`echo $creds | jq '.AccessKeyId' | sed 's/"//g'`;
  12. export AWS_SECRET_ACCESS_KEY=`echo $creds | jq '.SecretAccessKey' | sed 's/"//g'`;
  13. export AWS_SESSION_TOKEN=`echo $creds | jq '.SessionToken' | sed 's/"//g'`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top