Skip to main content

An AWS CDK construct which exposes an endpoint with the contents of a DynamoDB table

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.

The library is published under the following names:

Language Repository
JavaScript/TypeScript cdk-dynamo-table-viewer
Python cdk-dynamo-table-viewer
.NET Eladb.DynamoTableViewer
Java com.github.eladb/cdk-dynamo-table-viewer

Usage (TypeScript/JavaScript)

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.38.0 and above

License

Apache 2.0

Project details


Release history Release notifications | RSS feed

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-view-0.2.162.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

cdk_dynamo_table_view-0.2.162-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file cdk-dynamo-table-view-0.2.162.tar.gz.

File metadata

File hashes

Hashes for cdk-dynamo-table-view-0.2.162.tar.gz
Algorithm Hash digest
SHA256 96d8daa16f9ca0eec2449abd7a7ab6ad37eefe0816ecc18267ce184aa7665f0f
MD5 9daf9508dd51468dd02c70f18301e8d8
BLAKE2b-256 6d8d9db714f1f10d178dc5ad7b2a85e15ddce4d0d78c0db11ba3731b47e21f33

See more details on using hashes here.

File details

Details for the file cdk_dynamo_table_view-0.2.162-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_dynamo_table_view-0.2.162-py3-none-any.whl
Algorithm Hash digest
SHA256 ac50c954328c28742a1f959a3a9efbcd9a4133f9218abb4b3d90b08a669ca48f
MD5 c2e375ac4dff45afec8ef3e91b3c5e9f
BLAKE2b-256 b40db9ca4837cf97f258e620d0d58c5b054aa4562c71ae10cb62b9db29e3e086

See more details on using hashes here.

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