Find us on facebook

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

No comments:

Post a Comment