如何解决如何为发电机创建 cloudwatch 警报?
设置 - 在 cloudformation 模板中设置一个 dynamodb 和一个 lambda。我想在同一个模板中为 dynamo db 设置 ThrottledRequests 和延迟警报。谁有例子?
Resources:
errorAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmName: error
AlarmActions:
- !Ref errorTopic
MetricName: "Errors"
Dimensions:
- Name: "FunctionName"
- value: !Ref dbQueryLambda
errorTopic:
Type: AWS::SNS::Topic
Properties:
TopicName: error
Subscription:
- Protocol: email
- Endpoint: !Ref supportEmail
dbTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDeFinitions:
-
AttributeName: "Bucket"
AttributeType: "S"
-
AttributeName: "Key"
AttributeType: "S"
KeySchema:
-
AttributeName: "Bucket"
KeyType: "HASH"
- AttributeName: "Key"
KeyType: "RANGE"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。