Rise Functions is a CLI which takes a rise.mjs
file, and deploys AWS Lambda functions into your AWS account. All lambda functions are located in a /functions folder. The goal of rise functions is to make building AWS Lambda functions as simple and straight forward as possible.
npm i -g rise-functions
Deploy
rise-functions deploy
A project as the following structure:
/functions
myFunctionA.mjs
myFunctionB.mjs
myFunctionC.mjs
rise.mjs
If your function requires multiple files, or node_modules, functions can also be defined inside folders.
/functions
/myFunctionA
util.mjs
index.mjs
/myFunctionB
/node_modules
util.mjs
index.mjs
rise.mjs
The rise.mjs
file is for configuring your project. In order to treat this as a rise functions project, type must be set to functions
in this config. Here is an example:
module.exports = {
type: 'functions',
name: 'nameOfMyProject'
}
The only required parameter is the name. This will be used to name:
You can set the region and stage of your deployment like so:
focus deploy --stage=qa --region=us-east-2