1016 B
JAWS: AWS-Modules
Amazon Web Services Modules (aws-modules) are the building blocks of your JAWS serverless back-end.
Each aws-module contains one or multiple AWS Lambda functions, plus their AWS resource dependencies defined via AWS CloudFormation. You can read more about them in their Github repo.
Every time you create a lambda function or endpoint within your JAWS project, you create an aws-module.
JAWS is extremely modular by design. JAWS-modules must include code and a jaws.json file.
jaws-modules differ from npm-modules in that they are mostly “templates”. Since they are merely templates, we don’t need versioning and dependency management, so you can simply install them from their github url using jaws install <github url>.
The convention is to have a directory per lambda, under a resource dir in your back folder.
Check out the JAWS test project that shows off the modular philosophy of JAWS.