About
- NPM (Node Package Manager)
- It is a package manager for the JavaScript programming language.
- Serverless
- It is toolkit for building serverless applications.
- AWS Lambda
- It lets you run code without provisioning or managing servers
Installation on CentOS 7
- sudo yum install -y epel-release
- sudo yum install -y npm
- sudo npm i -g serverless
- serverless create --template hello-world
- serverless config credentials --provider aws --key xxx --secret yyy
- Note: copy xxx and yyy from https://console.aws.amazon.com/iam/home?#/security_credentials
- serverless deploy
- Goto https://???.execute-api.us-east-1.amazonaws.com/dev/hello-world