Skip to content

Commit

Permalink
Merge pull request #6 from IdentityAutomation/master
Browse files Browse the repository at this point in the history
fix to allow running under ECS using IAM task role
  • Loading branch information
catalinpan authored Jul 23, 2018
2 parents 0929e1b + cb43b16 commit 71cfaba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions configs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,15 @@ then
aws_secret_access_key = $AWS_SECRET" >> ${AWS_FOLDER}/config
fix_perm
# if the key and secret are not mounted as secrets
elif test_iam
then
else
echo "key and secret not available in ~/.aws/"
if aws ecr get-authorization-token | grep expiresAt
then
echo "iam role configured to allow ecr access"
else
echo "key and secret not mounted as secret, declared as variables or available from iam role"
exit 1
fi
else
echo "key and secret not mounted as secret, declared as variables or available from iam role"
exit 1
fi

# update the auth token
Expand Down

0 comments on commit 71cfaba

Please sign in to comment.