A cli tool to convert pre-existing lambda functions to the serverless framework. The files generated are structured to allow you to easily set up configurations for the overall project as well as each individual function for as many environments as are needed.
- Amazon Web Services (AWS)
- Python
- Node.js
pip install -e git+https://github.com/ZachtimusPrime/smg.git@master#egg=smg\&subdirectory=cli
Smg makes the following assumptions when generating the necessary serverless files:
- Python lambda files follow the naming of their parent folder with _lmbd appended
- Python lambda main function is named lambda_handler
- Nodejs lambda files are named index
- Nodejs lambda main function is named handler
You can find an example of the project structure here. Of course, you are free to change any of this as you see fit once the files are generated. Just know what you're doing.
# migrate cwd
smg migrate2aws
# migrate specific dir
smg migrate2aws -p <path-to-project>