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
File details
Details for the file cdk-dynamo-table-viewer-3.0.2.tar.gz
.
File metadata
- Download URL: cdk-dynamo-table-viewer-3.0.2.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c2659fc857c4bfb2598bee588662644900c27ec5058a2fa286d333b2f60276 |
|
MD5 | 47ba8c863e60cb93d0bee3600f233172 |
|
BLAKE2b-256 | ef44a397b51c6b9e71e60aac46fa43a95f5b4275b4070db704cc2bdab0eda330 |
Provenance
File details
Details for the file cdk_dynamo_table_viewer-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: cdk_dynamo_table_viewer-3.0.2-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcb74a8dcb334557404d1ca47c2d2a6660562bff879a9cbaa1ed4d7641756fe |
|
MD5 | 11201cb6b6a9845ca5b8fa73468a2cfa |
|
BLAKE2b-256 | dbf7f08c32b9e38f8938efde4cb59a5a6246f83c8160e9b4371eb96865f4cb90 |