似乎无法覆盖错误的.ebextensions配置AWS Elastic Beanstalk

时间:2016-10-11 10:59:56

标签: elastic-beanstalk alarm amazon-cloudwatch

我正在使用EB CLI将我的CI服务器中的zip文件部署到Elastic Beanstalk实例。到目前为止,这一直在使用手动和自动部署。

昨天我开始玩CloudWatch日志记录,并尝试了blog来启动。在部署方面,事情仍然很好。然后我故意加入错误来测试部署失败会发生什么:

public function form_data_info() {

    $data = array();
    $data['screct_pin'] = $this->input->post('screct_pin');
    $data['user_id'] = $this->input->post('user_id');

    $this->db->insert('tbl_pin',$data);
} 

当我删除错误时,我在运行 ###################################################### ## Alarms AWSEBCWLHttp5xxCountAlarm : nonsensechangeheree Type : "AWS::CloudWatch::Alarm" DependsOn : AWSEBCWLHttpNon5xxMetricFilter Properties : AlarmDescription: "Application is returning too many 5xx responses (count too high)." MetricName: CWLHttp5xx Namespace: {"Fn::Join":["/", ["ElasticBeanstalk", {"Ref":"AWSEBEnvironmentName"}]]} Statistic: Sum Period: 60 EvaluationPeriods: 1 Threshold: 10 ComparisonOperator: GreaterThanThreshold AlarmActions: - "Fn::If": - SNSTopicExists - "Fn::FindInMap": - AWSEBOptions - options - EBSNSTopicArn - { "Ref" : "AWS::NoValue" } 时仍然收到错误消息:

eb deploy

无论我做什么来传递正确的配置,这个错误仍然显示!我已经检查了我上传的ZIP文件,无论是否包含ERROR: InvalidParameterValueError - The configuration file .ebextensions/cwl-webrequest-metrics.config in application version talisker-0.0.26 contains invalid YAML or JSON. YAML exception: while scanning a simple key in "<reader>", line 125, column 3: nonsensechangeheree ^ could not found expected ':' in "<reader>", line 126, column 10: Type : "AWS::CloudWatch::Alarm" ^ , JSON exception: Unexpected character (#) at position 0.. Update the configuration file. ,我都会收到错误消息。我尝试删除并重新上传ZIP到S3。我试过重启服务器。我尝试过手动上传全新版本。

在我可以覆盖它的地方,这个配置是否存在?我也尝试在控制台中删除有问题的警报。

我确信我忽略了一些简单的事情,所以任何建议(明显的或其他的)都会非常感激!

0 个答案:

没有答案