gpt4 book ai didi

amazon-web-services - 如何允许 Bitbucket-Pipelines 从 Amazon EC2 容器服务 (ECR) 拉取镜像?

转载 作者:行者123 更新时间:2023-12-04 03:10:03 25 4
gpt4 key购买 nike

我尝试过的:

  • 我可以成功推送到 Amazon ECR(详见 this answer I posted)
  • 我无法在后续管道中提取上述图像(参见示例)。

示例 bitbucket-pipeline.yml

image:
name: <ecr-registry-address>/<repository>:<tag>
aws:
access-key: ${AWS_ACCESS_KEY_ID}
secret-key: ${AWS_SECRET_ACCESS_KEY}

pipelines:
default:
- step:
script:
- echo 'Hello World'

我返回的错误:

Currently getting this error, not much of an explanation

最后:

为了推送到存储库,我已经为 bitbucket-pipelines 帐户 ( AmazonEC2ContainerRegistryPowerUser ) 设置了 IAM 角色。是否需要任何其他设置?

最佳答案

我发现导致上述错误的原因是 ${} 格式。删除花括号允许一切按预期工作。

More details here.

关于amazon-web-services - 如何允许 Bitbucket-Pipelines 从 Amazon EC2 容器服务 (ECR) 拉取镜像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45983751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com