Interview Prep/Helm/Dependencies, Repositories & OCI

`helm push` to ECR fails with `name unknown: The repository with name 'charts/shop' does not exist in the registry with id '123456789012'`

BeginnerTroubleshootingDependencies, Repositories & OCI
Answer

Likely causes → ECR requires the repository to exist; it is not created on push. The repository name is the push path plus the chart name.

Diagnose → aws ecr describe-repositories --repository-names charts/shop.

Fix → aws ecr create-repository --repository-name charts/shop --image-tag-mutability IMMUTABLE, then push to oci://$REG/charts.

Prevent → Create chart repositories with Terraform alongside image repositories.

All Helm questions Roadmap: Helm

More on Dependencies, Repositories & OCI