Prerequisites
- ECR repos exist in one account and region (setup does not create or publish them).
- Admin rights to manage the IAM OIDC provider, role, and inline policy.
- Reuse an existing OIDC provider for this Nuon issuer if you already have one (
sts.amazonaws.comaudience; one connection subject per role).
Configure
- Add an image repository → Amazon ECR (name like
acme/platform/api; no hostname/tag/digest). - Choose or create an
ecrpull identity. Apply detail-page setup, then verify.
--default-regionis required; ARNs must match it.- Use preset
ecronly (notcustomorstacks). - Generated policy is read-only on the exact repository (
ecr:GetAuthorizationTokenon*, plus describe/list/get/download APIs). - Another repo: Grant access to another repository.