Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Lambda Custom Resource that emits a metric on the size of your DynamoDB Tables.

Project description

Python

from aws_cdk import core
from ddbsizemetric import DDBSizeLib


class MyStack(core.Stack):

    def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        super().__init__(scope, id, **kwargs)

        # The polling frequency defaults to once every 6 hours, which is how frequently DynamoDB updates the Table information.
        DDBSizeLib(self, "MyDynamoTableScanner")

Javascript

import ddbsizemetric = require('@richardhboyd/ddbsizemetric');
import cdk = require('@aws-cdk/core');

export class DdbTestJsStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new ddbsizemetric.DDBSizeLib(this, "MyDynamoTableScanner")
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ddbsizemetric, version 0.1.0a9
Filename, size File type Python version Upload date Hashes
Filename, size ddbsizemetric-0.1.0a9-py3-none-any.whl (10.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ddbsizemetric-0.1.0a9.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page