It is a worker to fetch ECR registry password from AWS by access token method and then create/update registry in Rancher on regular intervals. Following are required environment variables:
RANCHER_ACCESS_KEY
RANCHER_SECRET_KEY
RANCHER_URL
RANCHER_PROJECT (optional)
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY