Skip to main content

cdk-dynamo-table-viewer

Project description

cdk-dynamo-table-viewer

An AWS CDK construct which exposes a public HTTP endpoint which displays an HTML page with the contents of a DynamoDB table in your stack.

SECURITY NOTE: this construct was built for demonstration purposes and using it in production is probably a really bad idea. It exposes the entire contents of a DynamoDB table in your account to the general public.

Usage

Install via npm:

$ npm i cdk-dynamo-table-viewer

Add to your CDK stack:

import { TableViewer } from 'cdk-dynamo-table-viewer'

const viewer = new TableViewer(this, 'CookiesViewer', {
  table: cookiesTable,
  title: 'Cookie Sales', // optional
  sortBy: '-sales'       // optional ("-" denotes descending order)
});

Notes:

  • The endpoint will be available (as an deploy-time value) under viewer.endpoint. It will also be exported as a stack output.
  • Paging is not supported. This means that only the first 1MB of items will be displayed (again, this is a demo...)
  • Supports CDK version 0.31.0

License

Apache 2.0

Project details


Download files

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

Source Distribution

cdk-dynamo-table-viewer-3.0.1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

cdk_dynamo_table_viewer-3.0.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file cdk-dynamo-table-viewer-3.0.1.tar.gz.

File metadata

  • Download URL: cdk-dynamo-table-viewer-3.0.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for cdk-dynamo-table-viewer-3.0.1.tar.gz
Algorithm Hash digest
SHA256 4895053373ce5cdac53284fc3f2a1dab378c74560559013047cf702280c4feb6
MD5 9e036cc464d6e3a139c34e709dd3f79f
BLAKE2b-256 8783442db657a012964243ae7d7bb0b7e3930d9a64e825ec4aa98885aac2cf51

See more details on using hashes here.

Provenance

File details

Details for the file cdk_dynamo_table_viewer-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: cdk_dynamo_table_viewer-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for cdk_dynamo_table_viewer-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1559a68fa57ff2668afb98f169ce4e8f7db33bce52557342094f263a7dacdd8f
MD5 e479576a9f3ff9d3a955ea4f35d5fb0e
BLAKE2b-256 e73ea424c2688be283bd83ea75566dc4a11e9a2b74eb4534361e8af643cf1226

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page