GithubHelp home page GithubHelp logo

ramitsurana / the-serverless-setup Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 148 KB

Setup your entire infrastructure with serverless functions

Home Page: https://ramitsurana.github.io/the-serverless-setup/

License: MIT License

JavaScript 100.00%
aws-lambda cloudformation serverless-architectures google-cloud apex serverless-framework

the-serverless-setup's Introduction

The-serverless-setup

Setup your entire infrastructure with serverless functions

Architecture

arch

Comparision:

Features/Options Serverless Apex Chalice Zappa SAM
Language Written Nodejs Go Python Python Python
Functions Support Lambda,Google,Azure,Openwhisk AWS Lambda AWS Lambda AWS Lambda AWS Lambda
Provisioning CloudFormation Terraform Cloudformation Cloudformation YML/JSON Based Template

Use Cases

Benefits of Serverless Framework:

  • Based on NodeJS
  • CloudFormation Based Template
  • Multiple Cloud Provider Support
  • High Extensiblity of new features and options

Setup

  • Setup Authentication:

Using your AWS Credentials set up the id's at

$ sudo vi ~/.aws/credentials

Using your GCP Credentials set up the id's at

$ sudo cat /home/$USER/.gcloud/keyfile.json
  • Running latest nodjs and npm

Make sure to run latest version of nodejs and npm by running the below command:

$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n stable

$ sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/nodejs

Serverless Framework

Google Cloud Functions

Using google cloud functions can be currently implemented using Serverless framework.

Apex

Using the apex framework is easy and simple:

SAM

SAM denotes for Serverless Application Model.You can use the below commands for packaging and deploying a yaml based cloudformation template:

$ aws cloudformation package \
    --template-file /path_to_template/template.yaml \
    --s3-bucket bucket-name \
    --output-template-file packaged-template.yaml

For Deploying on AWS:

$ aws cloudformation deploy \
    --template-file /path_to_template/packaged-template.yaml \
    --stack-name my-new-stack \
    --capabilities CAPABILITY_IAM

License

MIT License

the-serverless-setup's People

Contributors

ramitsurana avatar

Stargazers

Acampbell avatar ZhangLei avatar

Watchers

 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.