Github上没有`基本身份验证凭证`到git事件上的AWS ECR部署

我已经完成了Flux的部署,以便将k8s部署到AWS EKS,为此我用以下配置了Github和k8S:

https://www.weave.works/blog/gitops-with-github-actions-eks

但得到no basic auth credentials

预先感谢

iCMS 回答:Github上没有`基本身份验证凭证`到git事件上的AWS ECR部署

您需要使用以下命令登录ECR存储库:

aws ecr get-login-password \
        --region <region> \
    | docker login \
        --username AWS \
        --password-stdin <aws_account_id>.dkr.ecr.<region>.amazonaws.com

ECR存储库URL: .dkr.ecr.region.amazonaws.com

示例:

sh“ aws ecr get-login-password --region us-west-1 | docker登录 --username AWS --password-stdin 09xxxxxxxxxx.dkr.ecr.us-west-1.amazonaws.com“

此命令使用GetAuthorizationToken API检索并显示身份验证令牌,您可以使用该API对Amazon ECR注册表进行身份验证。 〜(引自Amazon Docs)

参考:https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html

本文链接:https://www.f2er.com/1802079.html

大家都在问