Giter Site home page Giter Site logo

sam-ddb-display's Introduction

DynamoDB table scan and display web application

This is a dynamic s3 website which uses API gateway and Lambda to scan a Dynamodb Table and displays in tabular format.

Before deploying the Stack::

Zip up function.js
Create an S3 bucket and upload the function.zip file
Update template.yaml - bucket-name ( in CodeUri)

Deployment using Cloudformation

aws cloudformation deploy --template-file template.yaml --stack-name <<STACK-NAME>>--capabilities CAPABILITY_IAM

Identify "api-gateway-url" from the output

aws cloudformation describe-stacks --stack-name <<STACK-NAME>>  --query Stacks[].Outputs[].OutputValue[] --output text

After deploying the Stack::

 Update the <<api-gateway-url>> in index.html
 Upload to s3 bucket and enable website.

Browse the s3 website.

Javascript within index.html calls the API gateway to read the table and display in the browser. Initally the table is empty. The MySamInsertFunction can be manually invoked used to 'put a sample item' into the DynamoDB table.

Now refresh the browser to display the table contents.

===============================================================================

sam-ddb-display's People

Contributors

debrucer avatar jag-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sam-ddb-display's Issues

The template is using unsupported runtime (nodejs6.10)

Error from CloudFormation: The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.