rise-functions v0.0.51
Rise Functions
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.
Install
npm i -g rise-functionsUsage
Deploy
rise-functions deployProject Structure
A project as the following structure:
/functions
myFunctionA.mjs
myFunctionB.mjs
myFunctionC.mjs
rise.mjsIf 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.mjsWhat is the rise.mjs file for?
The rise.mjs file is for configuring your project. Here is an example:
export default {
name: 'nameOfMyProject',
// optional
domain: {
name: 'mydomain.com',
path: '/serviceA',
stage: 'dev'
}
}The only required parameter is the name. This will be used to name:
- the s3 bucket where your code will be uploaded
- lambda functions
- iam roles
What CLI flags are available?
You can set the region of your deployment like so:
rise-functions deploy --region=us-east-22 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago