amazon-web-services - 云信息健康检查 "Invalid Request"

标签 amazon-web-services aws-cloudformation

我正在尝试使用 Cloudformation 部署此 Cloudwatch 警报和运行状况检查,但收到一条错误消息,指出请求对于运行状况检查无效,并且无法理解原因。希望有人能帮我解决这个问题。

  rEventBusCwAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      ActionsEnabled: FALSE
      AlarmDescription: Alarm that monitors the health of event busses in current region by counting Failed Invocations
      ComparisonOperator: GreaterThanThreshold
      EvaluationPeriods: 5
      MetricName: FailedInvocations
      Namespace: AWS/Events
      Threshold: 10
      Statistic: Sum
      Period: 10


  rEventBusHealthCheck:
    Type: AWS::Route53::HealthCheck
    Properties:
      HealthCheckConfig:
        Type: CLOUDWATCH_METRIC
        InsufficientDataHealthStatus: Healthy
        AlarmIdentifier:
            Name: !Ref rEventBusCwAlarm
            Region: !Sub ${pRegion}

这是我得到的确切错误:

Resource handler returned message: "Invalid request provided: AWS::Route53::HealthCheck" (RequestToken: 281f0512-ba1d-3c44-4c44-d371f07fae81, HandlerErrorCode: InvalidRequest)

最佳答案

问题在于警报,而不是健康检查。如果您尝试不通过 Cloudformation 创建此警报,您将得到:

“AWS/”命名空间中的指标仅支持大于 60 秒的周期

所以改变

周期:10

周期:60(或更多)

这看起来像是一个 Cloudformation 错误,您应该无法创建该警报。

关于amazon-web-services - 云信息健康检查 "Invalid Request",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72717823/

相关文章:

docker - Cloudformation堆栈,那么如何查找原因或日志

amazon-web-services - 如何通过电子邮件发送 Cloudwatch 日志详细信息?

amazon-web-services - 如何使用 CloudFormation 自动标记根设备卷

amazon-web-services - Amazon route 53 上 Godaddy 托管电子邮件的 MX 记录问题

linux - Github 权限被拒绝 (publickey) SSH key 位于错误的目录中?

amazon-web-services - 使用 cloudformation 为 S3 存储桶启用 Lambda 函数

aws-cloudformation - 如何使用cloudformation在已有的任务定义中添加新容器?

amazon-web-services - Apache Tomcat 在使用 websocket 时返回 404

amazon-web-services - S3 通知在其他区域调用 sqs 主题

amazon-web-services - Amazon Athena CREATE EXTERNAL TABLE 输入不匹配 'external' invalidrequestexception