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.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
Built Distribution
Close
Hashes for cdk-dynamo-table-viewer-3.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6b7ab762c499bf5408fde76998405f71aeced2ddd04cae2facb3c69522cba30 |
|
MD5 | 6eec3a1f0b4c2913a12e5c350c6e3678 |
|
BLAKE2b-256 | af9f4c870278cfc1e1f492df6013d5cffa4fea4833150c72057075da10ddb055 |
Close
Hashes for cdk_dynamo_table_viewer-3.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5607e52b87229489003b5d71575b2348984c8e7e8786f08aef822c3c56fd7cbd |
|
MD5 | 45c238ce7fab06167a6cdca25f688135 |
|
BLAKE2b-256 | 8c020e3d53ba1bf574233d73d336c9b57f26de8f786c9f01d5b0e4980de77287 |