Concourse "no basic auth credentials" 尝试使用 docker-image 资源推送到 AWS ECR
Concourse "no basic auth credentials" when trying to push with docker-image resource to AWS ECR
我需要使用 Concourse 将图像推送到 AWS ECR
最新版本似乎有一个错误,所以我降级到 Concourse 3.0.1 并使用了此解决方法中推荐的自定义资源类型:https://github.com/concourse/concourse/issues/1252
不过,我在尝试推送到 ECR 时得到 "no basic auth credentials"
这是我声明资源类型的方式:
resource_types:
- name: docker-image-2
type: docker-image
source:
repository: concourse/docker-image-resource
tag: docker-1.12.6
resources:
- name: genesis-builder-docker-image
type: docker-image-2
source:
repository: xxxx.dkr.ecr.eu-west-1.amazonaws.com/genesis-builder
aws_access_key_id: concourse-ecr
aws_secret_access_key: xxxx
欢迎提出任何想法 ;)
糟糕,我使用了 IAM 用户名而不是访问密钥 ID。
此外,使用库存 docker-图像资源,无需定义资源类型。
我需要使用 Concourse 将图像推送到 AWS ECR 最新版本似乎有一个错误,所以我降级到 Concourse 3.0.1 并使用了此解决方法中推荐的自定义资源类型:https://github.com/concourse/concourse/issues/1252
不过,我在尝试推送到 ECR 时得到 "no basic auth credentials" 这是我声明资源类型的方式:
resource_types:
- name: docker-image-2
type: docker-image
source:
repository: concourse/docker-image-resource
tag: docker-1.12.6
resources:
- name: genesis-builder-docker-image
type: docker-image-2
source:
repository: xxxx.dkr.ecr.eu-west-1.amazonaws.com/genesis-builder
aws_access_key_id: concourse-ecr
aws_secret_access_key: xxxx
欢迎提出任何想法 ;)
糟糕,我使用了 IAM 用户名而不是访问密钥 ID。 此外,使用库存 docker-图像资源,无需定义资源类型。