- 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
No comments:
Post a Comment