Skip to content

AWS ECR login for pushing OCI images #223

@cjuega

Description

@cjuega

General Question

I've looked for it everywhere, but I couldn't fine instructions for using kcl-cli with AWS ECR as OCI registry. I saw the documentation mentions how to use a custom OCI registry and there is link to the AWS documentation. However the AWS documentation shows how to connect to ECR when using helm:

aws ecr get-login-password \
     --region us-west-2 | helm registry login \
     --username AWS \
     --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com

According to the kcl registry login documentation, there is no way to pass the password from the stdin; so there is no easy way to log kcl in ECR.

Also, I'm using this GitHub action to login into ECR: aws-actions/amazon-ecr-login which is supposed to work out of the box with helm (documentation), should it work out of the box with kcl-cli too?

What is the expected/recommended way to interact with AWS ECR? Should I use helm directly instead of trying to push the OCI image with kcl-cli?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions