I’m using aws-ecr@9.3.1 and aws-cli@4.0.0:
My container keeps failing when trying to run the aws-ecr/login
command. It didn’t have this issue when I had aws-cli@2.0.52 but I needed to upgrade due to image deprecation.
job:
setup_aws_ecr:
description: "Setup AWS ECR"
steps:
- setup_env
- aws-cli/setup:
region: ${AWS_REGION}
- aws-ecr/ecr_login:
# This requires the ${ } in order to substitute this environment variable name to string
region: ${AWS_REGION}
logs:
...
The following NEW packages will be installed:
amazon-ecr-credential-helper apparmor cgroupfs-mount containerd criu dbus
dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common
dbus-user-session dmsetup docker.io gettext-base iproute2 iptables
libapparmor1 libargon2-1 libatm1 libbpf1 libcap2-bin libcryptsetup12
libdbus-1-3 libdevmapper1.02.1 libfdisk1 libintl-perl libintl-xs-perl
libip4tc2 libip6tc2 libjson-c5 libkmod2 libmnl0 libmodule-find-perl
libmodule-scandeps-perl libnet1 libnetfilter-conntrack3 libnfnetlink0
libnftables1 libnftnl11 libnl-3-200 libnss-systemd libpam-cap libpam-systemd
libproc-processtable-perl libprotobuf-c1 libprotobuf32
libsort-naturally-perl libsystemd-shared libterm-readkey-perl libxtables12
needrestart nftables python3-protobuf runc sgml-base systemd systemd-sysv
systemd-timesyncd tini
0 upgraded, 59 newly installed, 0 to remove and 5 not upgraded.
Need to get 80.1 MB of archives.
After this operation, 313 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
Exited with code exit status 1