Closed dishn closed 2 months ago
Could yo provide more details about the environment you are using? It looks like it is failing for a lack of confirmation in the installation, but normally that's not requested.
@marboledacci We ran it in a remote docker environment with resource sized medium in circleci, below are the headers in the config.yml file:
version: 2.1
node-version-fill: &node-version-fill
docker:
- image: node:12.18.1
python-version-fill: &python-version-fill
docker:
- image: python:3.10.14
orbs:
aws-cli: circleci/aws-cli@4.0.0
aws-ecr: circleci/aws-ecr@9.3.1
aws-eks: circleci/aws-eks@0.2.3
kubernetes: circleci/kubernetes@0.12.0
heroku: circleci/heroku@1.2.6
browser-tools: circleci/browser-tools@1.4.8
instance is:
machine-agent version 1.0.81369-7529d87 (image: "ubuntu-2204:2024.05.1", public ip: "...", provider: "EC2") docker-agent version 1.0.26641-1e6f761
I've also tried aws-ecr@9.0.3
and it would fail with the same error, though not 9.0.2
The installation of the helper was added in 9.03, so that makes sense. As your instance is requiring to install more packages it needs confirmation. I'm going to add a -y flag to the step and that should work. In the meantime, if you need to use the newer versions of the orb before I can publish the fix I can think of two alternatives.
You can run installation steps previous to the login:
apt update
apt -y install amazon-ecr-credential-helper
Or you can choose not to use the credentials helper, and use the classical docker login as it was done in version 9.02 and before. For that you would have to set use_credentials_helper to false:
- aws-ecr/ecr_login:
region: ${AWS_REGION}
use_credentials_helper: false
For this last option you must use version 9.3.0 or later.
Thank you for your response, I'll consider this issue to be fixed in a later update then, will be closing the issue.
aws-ecr v9.3.1
What happened
when running command
ecr_login
, step would fail due to required user input:This issue did not occur when we had version 9.0.2.
here's a snippet of the step: