3

我正在使用codebuild triggers具有cron(*/2 * * * ? *)每 2 分钟触发一次的 cron 表达式的功能来触发我的代码构建。不幸的是,当我检查时,这在 2 分钟后没有运行,cloudwatch show metrics我可以看到有一些failedinvocations. 要知道错误的原因,我启用了 cloudtrail 日志,我可以看到这样的错误

 {
      "eventVersion": "1.04",
      "userIdentity": {
        "type": "IAMUser",
        "principalId": "xx",
        "arn": "arn:aws:iam::xx:user/xx",
        "accountId": "xx",
        "accessKeyId": "xx",
        "userName": "xx",
        "sessionContext": {
          "attributes": {
            "mfaAuthenticated": "true",
            "creationDate": "2019-03-04T06:21:22Z"
          }
        },
        "invokedBy": "signin.amazonaws.com"
      },
      "eventTime": "2019-03-04T09:04:56Z",
      "eventSource": "monitoring.amazonaws.com",
      "eventName": "DescribeAlarms",
      "awsRegion": "ap-south-1",
      "sourceIPAddress": "xxx",
      "userAgent": "signin.amazonaws.com",
      "errorCode": "ValidationException",
      "errorMessage": "1 validation error detected: Value 'INVALID_FOR_SUMMARY' at 'stateValue' failed to satisfy constraint: Member must satisfy enum value set: [INSUFFICIENT_DATA, ALARM, OK]",
      "requestParameters": {
        "stateValue": "INVALID_FOR_SUMMARY"
      },
      "responseElements": null,
      "requestID": "94f3a789-3e5c-11e9-92f8-xxx",
      "eventID": "c9ecfca2-a650-4997-b707-xxx",
      "eventType": "AwsApiCall",
      "recipientAccountId": "xxx"
    }

这到底是什么意思1 validation error detected: Value 'INVALID_FOR_SUMMARY' at 'stateValue' failed to satisfy constraint: Member must satisfy enum value set: [INSUFFICIENT_DATA, ALARM, OK]

这个错误是不触发我的代码构建的原因吗?

感谢任何帮助谢谢

4

1 回答 1

0

从 amazon 命令行执行此操作,它看起来像是 AWS 中的一个已知问题。我设法通过编排的常规 CI 工作更新了我的。

于 2020-04-21T13:43:01.023 回答