SOMOD serverless Directory


The serverless directory in the SOMOD module contains infrastructure in the template.yaml file and backend code in the functions directory.

The template.yaml is optional and has a similar format to AWS SAM Template with some improvements. You can find the template.yaml's specification in its dedicated chapter here.

The functions directory contains the code for the lambda functions. The prepare command bundles typescript code into a javascript file under .somod/serverless/functions/{moduleName}/{functionName}. Read more about functions here.

project-root | +-- node_modules --+ | +-- module-a | | +-- build/ | | +-- serverless/ | FROM DEPENDENCIES | +-- functions/ | | +-- functionLayers/ | | +-- template.json --+ | +-- .somod/ --+ | +-- serverless/ | | +-- functions/{moduleName}/{functionName}/ | BUNDLED | +-- functionLayers/{moduleName}/{functionName}/ --+ | +-- build/ --+ | +-- serverless/ | | +-- functions/ | BUILD OUTPUT | +-- functionLayers/ | | +-- template.json --+ | +-- serverless/ --+ | +-- functions/ | SOURCE | +-- template.yaml --+ | +-- template.yaml --- PREPARED
Does this page need improvements?
Edit This Page in GitHub
Did this page help you?
Provide feedback in the GitHub Discussion Page
Need More help?

Write an email to somod@sodaru.com

This documentation is built using
Developed and Maintained By
Sodaru Technologies
https://sodaru.com
© 2022