- Serverless installed
- Python 3.6 installed
- [awslogs (optional)](awslogs get /aws/lambda/botsy ALL --watch)
- Follow this video for instructions on installing serverless
- Create a
serverless.env.yamlfile locally and make sure it's added to your.gitignore. Place the environment variable values here.
A full summary of all the available properties for serverless.yaml for AWS: https://serverless.com/framework/docs/providers/aws/guide/serverless.yml/#serverlessyml-reference
serverless deploy
For more information on the deploy function, go here
After running serverless deploy the message will prompt you to run the serverless command. This will connect your serverless app to the serverless online dashboard.
If you do this you only get 1 million free invocations. It shows stats and such, but be careful before connecting.
I like to use [awslogs](awslogs get /aws/lambda/botsy ALL --watch).
awslogs get /aws/lambda/botsy ALL --watch
To remove the deployed service from AWS
serverless remove