Amazon ECR: Unable to locate credentials

Issue

The following error coming fom a CJE operation:

Unable to locate credentials. You can configure credentials by running "aws configure".
Script terminated with an error (255)

The operation fails.

Environment

Resolution

There is not a solution available yet.

Workaround

  1. Patch share/setup-templates/core/scripts/jce-system-support, search the function docker-ecr-login-cron and replace sudo -H /etc/cron.hourly/ecr-login by sudo -H /etc/cron.hourly/ecr-login || true.
  2. cje apply.

Tested product/plugin versions

Have more questions?

0 Comments

Please sign in to leave a comment.