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
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4895053373ce5cdac53284fc3f2a1dab378c74560559013047cf702280c4feb6 |
|
MD5 | 9e036cc464d6e3a139c34e709dd3f79f |
|
BLAKE2b-256 | 8783442db657a012964243ae7d7bb0b7e3930d9a64e825ec4aa98885aac2cf51 |
Close
Hashes for cdk_dynamo_table_viewer-3.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1559a68fa57ff2668afb98f169ce4e8f7db33bce52557342094f263a7dacdd8f |
|
MD5 | e479576a9f3ff9d3a955ea4f35d5fb0e |
|
BLAKE2b-256 | e73ea424c2688be283bd83ea75566dc4a11e9a2b74eb4534361e8af643cf1226 |