Amazon web services 忽略4xx增强运行状况规则导致AWS EB控制台配置页面错误

Amazon web services 忽略4xx增强运行状况规则导致AWS EB控制台配置页面错误,amazon-web-services,amazon-elastic-beanstalk,Amazon Web Services,Amazon Elastic Beanstalk,按照处的说明,使用.ebextensions/YAML/JSON方法忽略应用程序HTTP 4xx错误,具体而言,以下内容已添加到.ebextensions/00_option_settings.config中: - namespace: aws:elasticbeanstalk:healthreporting:system option_name: ConfigDocument value: { "Rules": { "Environment":

按照处的说明,使用.ebextensions/YAML/JSON方法忽略应用程序HTTP 4xx错误,具体而言,以下内容已添加到.ebextensions/00_option_settings.config中:

  - namespace: aws:elasticbeanstalk:healthreporting:system
    option_name: ConfigDocument
    value: {
      "Rules": {
        "Environment": {
          "Application": {
            "ApplicationRequests4xx": {
              "Enabled": false
            }
          }
        }
      },
      "Version": 1
    }
通过此配置,部署到elastic beanstalk会成功,并且似乎达到了预期效果,但是当访问env的配置页面(即在EB控制台中)时,会发生错误:

我已经尝试引用/转义了YAML中嵌入的JSON,但没有效果

在命令行中,eb config工作正常:

  aws:elasticbeanstalk:healthreporting:system:
    ConfigDocument: '{"Version":1,"Rules":{"Environment":{"Application":{"ApplicationRequests4xx":{"Enabled":false}}}}}'
    HealthCheckSuccessThreshold: Ok
    SystemType: enhanced

我的看起来像这样,而且工作正常

option_settings:
  - namespace: aws:elasticbeanstalk:healthreporting:system
    option_name: ConfigDocument
    value: {"Rules": {"Environment": {"Application": {"ApplicationRequests4xx": {"Enabled": false}}}},"Version": 1}

这个问题现在似乎已经解决了。是的,这和我之前提到的格式设置是一样的。我认为AWS EB端可能有一个bug-已修复,参考: