gpt4 book ai didi

amazon-web-services - YAML_FILE_ERROR 消息 : Wrong number of container tags, 应为 1

转载 作者:行者123 更新时间:2023-12-03 01:57:18 26 4
gpt4 key购买 nike

我是 AWS CodePipeline 新手,在 AWS CodeBuild 上遇到此错误

“YAML_FILE_ERROR 消息:容器标签数量错误,应为 1”

我已经为 aspnet core 2.1 项目设置了带有 CodeBuild 和 CloudFormation 的 AWS CodePipeline。这是我的 buildspec.yml

 {
"name": "Utility",
"source": {
"type": "S3",
"location": "<location>/windows-dotnetcore.zip"
},
"artifacts": {
"type": "S3",
"location": "<location>",
"packaging": "ZIP",
"name": "Utility.zip"
},
"environment": {
"type": "LINUX_CONTAINER",
"image": "aws/codebuild/dot-net:core-2.1",
"computeType": "BUILD_GENERAL1_SMALL"
},
"serviceRole": "<value>",
"encryptionKey": "<value>"
}

最佳答案

当我省略 yml 中的第一个“版本”行时,这发生在我身上:

version: 0.2

关于amazon-web-services - YAML_FILE_ERROR 消息 : Wrong number of container tags, 应为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52407882/

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