From 4a7a5a6433a9d2a8438021ff6cf0a6e2cbeca726 Mon Sep 17 00:00:00 2001 From: Eric Dahlseng Date: Tue, 17 Dec 2019 12:03:18 -0800 Subject: [PATCH] fix: Append AWS credentials rather than overwriting --- sources/index.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/index.yml b/sources/index.yml index c41e4d1..fa3dc79 100644 --- a/sources/index.yml +++ b/sources/index.yml @@ -150,9 +150,7 @@ commands: command: | mkdir -p ~/.aws - cat \< ~/.aws/credentials - # AWS Credentials - + cat \<> ~/.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 >>} @@ -160,6 +158,7 @@ commands: [<< 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}