gpt4 book ai didi

amazon-ecs - 如果 AWS ECR 存储库不存在,则创建它

转载 作者:行者123 更新时间:2023-12-02 02:46:55 25 4
gpt4 key购买 nike

如果 AWS ECR 存储库尚不存在,如何创建它?

最佳答案

如果存储库不存在(或者由于任何其他原因描述命令失败),则用于创建存储库的一个衬垫:

aws ecr describe-repositories --repository-names ${REPO_NAME} || aws ecr create-repository --repository-name ${REPO_NAME}

关于amazon-ecs - 如果 AWS ECR 存储库不存在,则创建它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51028677/

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