[英]Create AWS::ECR::Repository resource by Cloudformation
I want to create repositories in my ECS cluster, using this syntax : 我想使用以下语法在ECS集群中创建存储库:
"PrincipalRepository": {
"Type" : "AWS::ECR::Repository",
"Properties" : {
"RepositoryName" : String,
"RepositoryPolicyText" : JSON object
}
}
My question is: how to configure also the docker image in the template, and the repository URI : account.dkr.ecr.region.amazonaws.com/repoName
? 我的问题是:如何还在模板中配置docker映像以及存储库URI:
account.dkr.ecr.region.amazonaws.com/repoName
? Because I think this template will just give an empty repository. 因为我认为此模板只会提供一个空的存储库。 Am I right?
我对吗?
Thank you 谢谢
This will indeed create an empty repository. 实际上,这将创建一个空的存储库。 You will need to do a
docker push ...
after building the image on a docker host. 在docker主机上构建映像后,您将需要执行
docker push ...
See the View Push Commands button in the ECS Repository console. 请参阅ECS存储库控制台中的“ 查看推送命令”按钮。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.