You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vi serverless.yml
stage: dev
region: eu-west-2 ```
Deploy to aws
serverless deploy -v
# which will deploy everything and give you the endpoint
endpoints:
GET - https://v69b1ygn03.execute-api.eu-west-2.amazonaws.com/dev/users/create
and test it
serverless invoke -f hello -l
Offline
Configure npm
npm init
Install offline serverless
npm install serverless-offline --save-dev
# and configure it
vi serverless.yml
# add these lines
plugins:
- serverless-offline
Run it locally
serverless offline start
#this will then give you the available endpoint
http://localhost:3000/dev/users/create