Git Product home page Git Product logo

aws-sam-lambda-dynamodb's Introduction

Introduction

This git repository is an example microservice to perform CRUD operation. This microservice is deployed on AWS Lamnda and API Gateway using SAM(Serverless application model). SAM cli is a great tool to manage your AWS infrastructure and achieve IaC(Infrastructure as Code) model.

Prerequisite

  • Knowledge of NodeJs, Basic Javascript and api development
  • Understanding of AWS services
  • AWS CLI installed and configured
  • SAM CLI installed and configured
  • NodeJs 8.10 or greater installed on local machine

Highlights

  • Use of SAM Templates to create infra and deploy code
  • Create a serverless lambda function in NodeJs
  • Store data in dynamoDB using NodeJs and lambda function
  • Use of API Gateway AWS service to trigger lambda function

Commands

Once you clone the repository or create your own function and template following commands are required to package and deploy the application.

  • Packaging - sam package --template-file template.yml --output-template-file package.yml --s3-bucket YOUR_BUCKET_NAME
  • Deploying - sam deploy --template-file package.yml --stack-name YOUR_STACK_NAME --capabilities CAPABILITY_IAM

For example:

  • Packaging - sam package --template-file template.yml --output-template-file package.yml --s3-bucket inkloft-backend-products
  • Deploying - sam deploy --template-file package.yml --stack-name inkloft-backend-products --capabilities CAPABILITY_IAM

aws-sam-lambda-dynamodb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.