CloudWatch仪表板:进入终止状态后环境无法启动

时间:2018-07-18 06:33:40

标签: amazon-web-services elastic-beanstalk amazon-cloudformation

.ebextensions文件夹中的配置文件有问题时,出现此错误。日志中没有其他任何帮助。在哪里可以找到有关此类情况出了什么问题的其他信息?

日志摘录:

08:09:42 UTC+0200   ROLLBACK_IN_PROGRESS    AWS::CloudFormation::Stack  pca-test    The following resource(s) failed to create: [pcaBackendEnvironment100WkHrs]. . Rollback requested by user.
08:09:42 UTC+0200   CREATE_FAILED   AWS::ElasticBeanstalk::Environment  pcaBackendEnvironment100WkHrs   Environment failed to launch as it entered Terminated state
Physical ID:pca-test
Client Request Token:Console-CreateStack-45f9fd76-b43a-48ec-bab1-34f27f02c239
08:09:11 UTC+0200   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::
Environment pcaBackendEnvironment100WkHrs   Resource creation Initiated

在这种情况下,将“资源”部分添加到此文件后,错误开始。谁能告诉我这是怎么回事?

.ebextensions / cloudwatch.config:

option_settings:
  aws:elasticbeanstalk:cloudwatch:logs:
    StreamLogs: true

Resources:
  dashboard:
    Type: AWS::CloudWatch::Dashboard
    Properties:
      DashboardName: !Ref AWSEBEnvironmentName
      DashboardBody: !Sub |
        {
          "widgets": [
            {
              "type": "metric",
              "x": 6,
              "y": 0,
              "width": 6,
              "height": 6,
              "properties": {
                  "view": "timeSeries",
                  "stacked": false,
                  "metrics": [
                      [ "AWS/ApplicationELB", "RequestCount", "LoadBalancer", "${AWSEBV2LoadBalancer.Name}", { "stat": "Sum" } ]
                  ],
                  "region": "eu-west-1",
                  "period": 300
              }
            }
          ]
        }

0 个答案:

没有答案