Find us on facebook

Showing posts with label Serverless And AWS Lambda. Show all posts
Showing posts with label Serverless And AWS Lambda. Show all posts

Jan 31, 2018

serverless setup for cloned project

  • Install node
  • Install serverless (npm install -g serverless)
  • clone the repository
  • cd to repository folder
  • npm install
  • Login to AWS console → go to IAM→ security credentials→create access key
  • serverless config credentials --provider aws --key testkeyforaws --secret secretforaws
  • serverless deploy --aws-profile devProfile(didn't use - may be useful)
  • serverless login – (create github account to access code)
  • serverless invoke -f functionname

Sep 9, 2016

Serverless Apps with AWS Lambda

Serverless Framework

The Serverless Framework is a new cloud computing trend. It is open-source, command line tool and standard syntax that is used to easily build serverless architectures on AWS Lambda, Google Cloud Functions, and Windows Azure Functions.

"Serverless platforms allow developers to build apps without worrying about infrastructure."

Install the Serverless Framework

Make sure you have node and npm installed. You need node 4.0 or greater.

npm install serverless -g

Once the package is installed globally, you can create or download a new project and start working on your Lambda functions in JavaScript (Node.js 0.10 or 4.3) or Python 2.7.

Create project : serverless project create

Create Function : serverless function create function/SubFolder/FunctionName -s dev -r ap-northeast-1 (-s = dev or prod stage -r = aws region)

Deploy Function : serverless function deploy

Deploy Events : serverless event deploy EventName -s dev -r ap-northeast-1