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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879a1edb16ea1259aab3442fa50b0774012e3af779f82a1b49c593740deb8581 |
|
MD5 | e0672dbbdb809380b59adeb00c106138 |
|
BLAKE2b-256 | 33b7c24732cd57127655a811ed4bdf4f5bab4bf64380c76b3e7953eb134bbbb2 |
Close
Hashes for cdk_dynamo_table_viewer-3.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e43c952353221cb0a2548b85d6d891a4677d28ab878a6f29bc4db1f1604803f |
|
MD5 | 05ee122695b99d501b8fab39dab76239 |
|
BLAKE2b-256 | 671b5498f84c465ab2c7003babbb4648e472d58db6e976bb3b5cd5405250f587 |