JSPM

serverless-dynamodb-autoscaling-plugin

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q79822F
  • License MIT

This plugin addes autoscaling and scheduled actions to DynamoDB tables.

Package Exports

  • serverless-dynamodb-autoscaling-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-dynamodb-autoscaling-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

serverless-dynamodb-autoscaling-plugin

This plugin addes autoscaling and scheduled actions to DynamoDB tables.

Install plugin:

npm install --save-dev serverless-dynamodb-autoscaling-plugin

serverless.yml:

plugins:
  - serverless-dynamodb-autoscaling-plugin

custom:
  autoscaling:
    - table: Table
      read:
        minimum: 5
        maximum: 20
        usage: 0.6
        actions:
          - name: morning
            minimum: 5
            maximum: 20
            schedule: cron(0 6 * * ? *)
          - name: night
            minimum: 1
            maximum: 1
            schedule: cron(0 0 * * ? *)
      write:
        minimum: 5
        maximum: 50
        usage: 0.6
        actions:
          - name: morning
            minimum: 5
            maximum: 50
            schedule: cron(0 6 * * ? *)
          - name: night
            minimum: 1
            maximum: 1
            schedule: cron(0 0 * * ? *)

resources:
  Resources:
    Table:
      Type: AWS::DynamoDB::Table
      ...