0.1.5 • Published 4 years ago

serverless-dynamodb-alarms-plugin v0.1.5

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

Create Cloudwatch alarms for all DynamoDB tables' read and write capacity.

Usage

In Serverless template:

plugins:
  - serverless-dynamodb-alarms-plugin

custom:
  ddbAlarms:
    read:
      provisionedCapacityUnitsAlarmThreshold: 3000
      throttleEvents: 1
    write:
      provisionedCapacityUnitsAlarmThreshold: 3000
      throttleEvents: 1  
    period: 60
    evaluationPeriods: 1
    topicName: snsNotificationTopic
    filter:
      - "*"

Match only listed tables:

custom:
  ddbAlarms:
    read:
      provisionedCapacityUnitsAlarmThreshold: 3000
      throttleEvents: 1
    write:
      provisionedCapacityUnitsAlarmThreshold: 3000
      throttleEvents: 1  
    period: 60
    evaluationPeriods: 1
    topicName: snsNotificationTopic
    filter:
      - Exmaple1Table
      - Example2Table