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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18782057dac7b42c068b569e88b78739848ca47373b2c7e53922b40e47676a27 |
|
MD5 | c771321ec57a1e3d0f57029a2f662182 |
|
BLAKE2b-256 | 64d58a1c3b3585882f8e19f86fbfdf18ba417be8bf1bbb658f17d1fb0437cdc3 |
Close
Hashes for cdk_dynamo_table_viewer-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a0f53be57e6991cfa5a5f661190838599bd085fbd351a41eaf8dcdce58e770 |
|
MD5 | 6893d6d3d53b74a5d3631511f6447348 |
|
BLAKE2b-256 | 95d8b5c60180baedeccee0ca39d7b0768130d4f75a7dba402063860131861018 |