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.
The library is published under the following names:
Language | Repository |
---|---|
JavaScript/TypeScript | cdk-dynamo-table-viewer |
Python | cdk-dynamo-table-viewer |
.NET | Eladb.DynamoTableViewer |
Java | com.github.eladb/cdk-dynamo-table-viewer |
Usage (TypeScript/JavaScript)
Install via npm:
$ npm i cdk-dynamo-table-viewer
Add to your CDK stack:
# Example automatically generated. See https://github.com/aws/jsii/issues/826
from cdk_dynamo_table_viewer import TableViewer
viewer = TableViewer(self, "CookiesViewer",
table=cookies_table,
title="Cookie Sales", # optional
sort_by="-sales"
)
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4bfd94ecec399d056ed0e20e0ee928bc46c8d9ad81de79a06750dd7ee8c6ea |
|
MD5 | 7bfa0df94fe08324417fd8f0613da848 |
|
BLAKE2b-256 | e0fa5fbf981ad7d9ad94ad4b51d20eacb253ceca81be1fe6e4ee80407e8cfd0c |
Close
Hashes for cdk_dynamo_table_viewer-3.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e710c07c6285e04b345c4453aeace27e866e79b7e821ffe3ead3a00b2e4291dc |
|
MD5 | d7131d019312c9ca8f3812ff7178f741 |
|
BLAKE2b-256 | 18e940bfe235f267ac190cc3b002dfd5d6bce7a3ece09d5f9092ec09400bed61 |