diff --git a/.aws/config b/.aws/config index 386f4eaaccd36a43d0360efc499fcf3d9dc926f7..3915c0c90de761f271d6f7defbc6effeeb6cbf36 100644 --- a/.aws/config +++ b/.aws/config @@ -1,2 +1,6 @@ +# vim: ft=cfg [profile shore] region = us-east-1 + +[profile schoolinks] +region = us-east-1 diff --git a/.aws/credentials.j2 b/.aws/credentials.j2 index c5ce38bebcfe3c0a33a9d7bfe8243f4e1d033d0a..f92f47f9eb6b9dc0c366e2b53d4d2a31b9848236 100644 --- a/.aws/credentials.j2 +++ b/.aws/credentials.j2 @@ -2,3 +2,7 @@ [shore] aws_access_key_id = {{ run(["ph", "show", "--field", "UserName", "shore.co.il/AWS CLI"])["stdout"] }} aws_secret_access_key = {{ run(["ph", "show", "--field", "Password", "shore.co.il/AWS CLI"])["stdout"] }} + +[schoolinks] +aws_access_key_id = {{ run(["ph", "show", "--field", "UserName", "SchooLinks/AWS access key"])["stdout"] }} +aws_secret_access_key = {{ run(["ph", "show", "--field", "Password", "SchooLinks/AWS access key"])["stdout"] }} diff --git a/Repositories/SchooLinks/.envrc b/Repositories/SchooLinks/.envrc index 54be2167afcf567ec3823540e091502e9612083c..8c324622f32c4fe1e762d8f1f61cea3aea248344 100644 --- a/Repositories/SchooLinks/.envrc +++ b/Repositories/SchooLinks/.envrc @@ -1,6 +1,8 @@ # shellcheck shell=bash disable=SC1091 # vim: ft=sh source_up +export AWS_DEFAULT_PROFILE=schoolinks +export AWS_PROFILE=schoolinks export COMPOSE_FILE='docker-compose.local.yml' export GIT_AUTHOR_EMAIL='nimrod@schoolinks.com' export GIT_AUTHOR_NAME='Nimrod Adar'