gpt4 book ai didi

amazon-cloudwatch - aws cloudwatch 事件规则中的验证错误?

转载 作者:行者123 更新时间:2023-12-05 07:25:11 29 4
gpt4 key购买 nike

我正在使用 codebuild triggers 触发我的代码构建具有 cron 表达式的功能 cron(*/2 * * * ? *)每 2 分钟触发一次。不幸的是,当我检查 cloudwatch show metrics 时,它在 2 分钟后没有运行。我可以看到有一些 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]

此错误是否是未触发我的代码构建的原因?

感谢任何帮助谢谢

最佳答案

从亚马逊命令行执行,这看起来像是 AWS 中的一个已知问题。我设法通过编排的常规 CI 作业更新了我的。

关于amazon-cloudwatch - aws cloudwatch 事件规则中的验证错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54981026/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com