ECR Service Deep Dive

Use this as a fast expert note. ECR is not just image storage. It is part of the software supply chain and directly affects artifact immutability, deployment trust, and vulnerability visibility.

1. Service Identity

FieldNotes
Service nameECR
FamilyDevOps and Infrastructure
Primary purposeStore and distribute container images for AWS runtimes
Abstraction modelManaged container registry
Management modelManaged
State modelPersistent versioned image repository
ScopeRegional service
Closest AWS alternativesDocker Hub, GHCR, self-hosted registries

2. Default Fit And Non-Fit

  • Right default for AWS-centric container delivery.
  • Strong fit when ECS, EKS, or build pipelines already live in AWS.
  • Dangerous default when teams treat registry presence as supply-chain security.
  • Wrong default when broader multi-platform distribution is the main driver and AWS integration adds little value.

3. High-Impact Settings

SettingWhat It ControlsWhy It Matters
Repository structureimage ownership and lifecycleaffects traceability
Tag strategymutability and deployment trustmutable tags weaken rollback clarity
Lifecycle policycleanup and retentionprevents registry sprawl
Scanning posturevulnerability visibilityhelps catch image risk early
Cross-account accessshared platform deliverymust be tightly controlled

4. Failure And Cost Notes

  • Main failure mode: weak tag discipline and unclear source-of-truth images.
  • Main cost driver: retained image volume and duplicated artifacts.
  • Main anti-pattern: using latest or mutable tags for production rollout decisions.

5. Expert Warnings

  • Do not confuse artifact storage with end-to-end supply-chain security.
  • Do not let many teams share one repository without ownership rules.
  • Do not retain every image forever.
  • Do not rely only on scanning results without remediation workflow.