Skip to content

Commit

Permalink
fix: Append AWS credentials rather than overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
edahlseng committed Dec 17, 2019
1 parent 0474f9a commit 4a7a5a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sources/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,15 @@ commands:
command: |
mkdir -p ~/.aws
cat \<<EOF > ~/.aws/credentials
# AWS Credentials
cat \<<EOF >> ~/.aws/credentials
[<< parameters.profile-name >>-credentials]
aws_access_key_id = ${<< parameters.aws-access-key-id-variable-name >>}
aws_secret_access_key = ${<< parameters.aws-secret-access-key-variable-name >>}
[<< parameters.profile-name >>]
source_profile = << parameters.profile-name >>-credentials
role_arn = ${<< parameters.aws-role-variable-name >>}
EOF
echo 'unset << parameters.aws-access-key-id-variable-name >>' >> ${BASH_ENV}
Expand Down

0 comments on commit 4a7a5a6

Please sign in to comment.