nabsul / k8s-ecr-login-renew

Renews Docker login credentials for an AWS ECR container registry.
MIT License
205 stars 49 forks source link

[Question] What's the use case of this project compared to amazon-ecr-credential-helper? #21

Closed PawelLipski closed 3 years ago

PawelLipski commented 3 years ago

https://aws.amazon.com/blogs/compute/authenticating-amazon-ecr-repositories-for-docker-cli-with-credential-helper/ => Amazon ECR Docker Credential Helper

Actually, how does this project relate to the Helper? Is Helper for some reason not easy to use for k8s authentication against ECR? 🤔

nabsul commented 3 years ago

Interesting find, I've never heard of this tool before. Looking at the blog post and the documentation, amazon-ecr-credential-helper appears to be specifically designed to save you from typing docker login (on your local machine or in your CI/CD pipeline). So it's specifically designed for Docker.

k8s-ecr-login-renew is specifically designed for Kubernetes. It fetches the ECR registry credentials and saves them to a K8s secret. It essentially automates the process described here and here.

PawelLipski commented 3 years ago

Ok, that's what I suspected as well, thanks