Interview Prep/GitHub Actions/Deployments, Environments & Releases

`ErrImagePull ... failed to resolve reference "111122223333.dkr.ecr.ap-south-1.amazonaws.com/shack-api@sha256:...": not found` after a deploy.

AdvancedTroubleshootingDeployments, Environments & Releases
Answer

Likely causes → The digest output was from the local build (config digest or a platform-specific digest) rather than the pushed manifest digest, or the image was pushed to another region or account.

Diagnose →

aws ecr describe-images --repository-name shack-api --query 'imageDetails[?imageTags!=`null`]|[0:5].[imageTags,imageDigest]'

Fix → Take the digest from docker/build-push-action output digest, or after docker push from docker inspect --format '{{index .RepoDigests 0}}'.

Prevent → Verify the digest exists in the registry before deploying (aws ecr describe-images --image-ids imageDigest=...).

All GitHub Actions questions Roadmap: GitHub Actions

More on Deployments, Environments & Releases