That’s a tricky one! There can be a few causes. Let’s see if we can narrow it down!
First up, when you have plugins that depend on ordering, it’s a good idea to use a list for plugins vs a map. It’s rare, but there can be ordering issues with maps as yaml doesn’t guarantee enumeration order. Beyond that, the other possibility is that the ECR login is happening in a region other than us-west-2
, which would explain the issue. Do you know what region your agent instance is in?
Perhaps you could try:
plugins:
- ecr#v1.1.4:
login: true
account_ids: "436617320022"
no-include-email: true
region: us-west-2
- docker#v2.0.0:
image: "436617320022.dkr.ecr.us-west-2.amazonaws.com/ci:centos"
workdir: /data/job
timeout: 120