Required environment variables:
AWS_KEY -> Your Amazon Access Key
AWS_SECRET -> Your Amazon Secret Key
AWS_REGION -> The Region used (like us-east-1)
eval $(docker run -e "AWS_KEY=<key>" -e "AWS_SECRET=<secret>" -e "AWS_REGION=<region>" inst/ecr_get_login)
This eval command will execute the output of the ecr_get_login. As Amazon ECR does not use conventional user/email and password for authentication, this token gets generated to be used to access the repositories. A token lasts 12 hours before expiring. The machine that you run on needs to have the date/time on the machine be synced up to real time.