It’s been a while since I’ve written any notes about the Serverless framework, so here’s a few notes as a refresher on typical steps I use for local development.
As a reminder to self, regions I typically deploy to are:
- us-west-1 : SF
- us-west-2: Oregon
- eu-west-2: London
AWS regions are listed here.
To deploy:
serverless deploy --region eu-west-2
To invoke local:
serverless invoke local --function functionName
To invoke remotely:
serverless invoke --function functionName --region eu-west-2
To check logs from last invoke:
serverless logs --function functionName --region eu-west-2