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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d636c1be6b4a146aca9a7e1f44d2915f4187ac45d1253ab379df34eb5affb60 |
|
MD5 | b4c291d6a2fc369a1b246b66aa19e712 |
|
BLAKE2b-256 | 399ebe90f2ab44ea72ef5b9a079ebf840d7ad7a0526c0394fdb9482c907c23e5 |
Close
Hashes for cdk_dynamo_table_viewer-3.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce4750247f7ade0556e36d8128f163df1e8b95bd980f975303cede33181b3dda |
|
MD5 | 2756509d9a68527742674ba14b7ce645 |
|
BLAKE2b-256 | c10d828cc18987fa874ace55cefba9885f2569902cde8c989591d97cd42ce9da |