简体   繁体   English

遇到 AWS Elastic BeanStalk 事件错误:清单文件有架构验证错误

[英]Running into AWS Elastic BeanStalk Event Error: Manifest file has schema validation errors

I am setting up pipelines to AWS Elastic BeanStalk via bitbucket and I am running into: Manifest file has schema validation errors: Error Kind: ArrayItemNotValid, Path: #/aspNetCoreWeb.[0], Property: [0] Error Kind: PropertyRequired, Path: #/parameters.appBundle, Property: appBundle Error Kind: NoAdditionalPropertiesAllowed, Path: #/parameters, Property: parameters.我正在通过 bitbucket 设置到 AWS Elastic BeanStalk 的管道,我遇到了:Manifest file has schema validation errors: Error Kind: ArrayItemNotValid, Path: #/aspNetCoreWeb.[0], Property: [0] Error Kind: PropertyRequired, Path :#/parameters.appBundle,属性:appBundle 错误种类:NoAdditionalPropertiesAllowed,路径:#/parameters,属性:参数。

It seems that I am have a problem with my manifest file.看来我的清单文件有问题。 However due to there being very little documentation on how to fix this problem.但是,由于关于如何解决此问题的文档很少。 I am not able to resolve this issue.我无法解决这个问题。 How do I solve this problem?我该如何解决这个问题?

Here is my aws-windows-deployment-manifest file:这是我的 aws-windows-deployment-manifest 文件:

{
  "manifestVersion": 1,
  "deployments": {
    "aspNetCoreWeb": [
      {
        "name": "CareerDash",
        "parameters": {
          "archive": "site",
          "iisPath": "/"
        }
      }
    ]
  }
}

Look like I figured it out.看起来我明白了。 The issue is that the aws-windows-deployment-manifest.json file should be like the following:问题是 aws-windows-deployment-manifest.json 文件应该如下所示:

{
  "manifestVersion": 1,
  "deployments": {
    "aspNetCoreWeb": [
      {
        "name": "CareerDash",
        "parameters": {
          "appBundle": "site.zip", /*This line is where your web app file location is. The Web app folder should be in .zip file. */
          "iisPath": "/" /* This line is the path to where your web app files are located in site.zip file, specifically the path to web.config file (which should be in the same level as your main web app files */
        }
      }
    ]
  }
}

Overall your app bundle should be a zip file that contains the site.zip file and aws-windows-deployment-manifest.json file.总体而言,您的应用程序包应该是一个 zip 文件,其中包含 site.zip 文件和 aws-windows-deployment-manifest.json 文件。 In a hierarchy like so:在这样的层次结构中:

appBundleName.zip appBundleName.zip

  • site.zip网站.zip
  • aws-windows-deployment-manifest.json aws-windows-部署-manifest.json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM