serverless/docs/aws-modules.md
Austen Collins dd785825c6 sync
2015-09-16 10:23:04 -07:00

1016 B
Raw Blame History

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 dont 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.