Skip to content

Commit

Permalink
Merge pull request #18 from AnchorFree/INFRA-8582-remove-aws-env-vari…
Browse files Browse the repository at this point in the history
…ables-as-mandatory

remove checks for aws env varaible for auth, it allow to use this app…
  • Loading branch information
dmitriy-lukyanchikov authored Jun 19, 2019
2 parents cf5f794 + ac1b28e commit 2a9e93f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ if [ -z ${CREATE_K8S_SECRET} ] || [ ${CREATE_K8S_SECRET} != "true" ]; then
fi
fi

if [ -z ${AWS_ACCESS_KEY_ID} ]; then


if [ -z ${AWS_ACCESS_KEY_ID} ] && [ -z ${AWS_CLOUD_ENVIRONMENT} ]; then
echo "AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are mandatory"
exit 1
fi

if [ -z ${AWS_SECRET_ACCESS_KEY} ]; then
if [ -z ${AWS_SECRET_ACCESS_KEY} ] && [ -z ${AWS_CLOUD_ENVIRONMENT} ]; then
echo "AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are mandatory"
exit 1
fi
Expand Down

0 comments on commit 2a9e93f

Please sign in to comment.