Interview Prep/Helm/Dependencies, Repositories & OCI

`Error: unexpected status from HEAD request to https://123456789012.dkr.ecr.ap-south-1.amazonaws.com/v2/charts/shop/manifests/1.4.0: 403 Forbidden`

IntermediateTroubleshootingDependencies, Repositories & OCI
Answer

Likely causes → ECR login token expired (valid 12 hours), wrong region in the login, or IAM lacks ecr:BatchGetImage/ecr:GetDownloadUrlForLayer (pull) or push permissions.

Diagnose →

aws sts get-caller-identity
aws ecr get-login-password --region ap-south-1 >/dev/null && echo ok

Fix → Re-login with the correct region; fix the IAM policy or repository policy (for cross-account pulls).

Prevent → Login as part of each pipeline job; Terraform-managed policies.

All Helm questions Roadmap: Helm

More on Dependencies, Repositories & OCI