Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create project from template
- sls create -n proto-matrix -t aws-python3
- # deploy the service to the cloud
- sls deploy
- # invoke the deployed function
- sls invoke -f hello
- # plugin to manage code dependencies in python
- sls plugin install -n serverless-python-requirements
- # file that contains the list of code dependencies
- requirements.txt
- # Add to serverless.yml
- # What this does is tell the serverless-python-requirements plugin to compile the Python packages in a Docker container before bundling them in the zip archive to ensure they're compiled for 64-bit Linux. You'll also need to install Docker in order for this to work, but once done this plugin will handle the dependencies you define in your requirements.txt file automatically.
- custom:
- pythonRequirements:
- dockerizePip: true
Add Comment
Please, Sign In to add comment