0.0.3 • Published 5 years ago
deply v0.0.3
deply
A batch deployer for AWS Lambda.
Install
$ npm install -g deply # requires node v12.19.0 or laterUsage
$ deply initPlace your functions in separate folders:
└── functions
├── foolambda
│ └── index.js
└── barlambda
└── index.jsEdit deploy.json:
[
{
"forEachIn": "functions",
"do": "zip -r deploypackage.zip .",
"upload": "deploypackage.zip",
"config": {
"amazon": {
"role": "YOUR_LAMBDA_ROLE_ARN"
}
}
}
]Run deply:
$ deply
Deployed foolambda in js
Deployed barlambda in jsdeploy.json Defaults
{
// role: Must be specified
// region: Your AWS CLI default region
ram: 128,
timeout: 60
}Tips
ramandtimeoutare only consulted when the function is deployed for the first time.deplytries to infer the language of every Lambda. If it did so incorrectly, please include$ treein the GitHub issue.- You don't need to do any cleaning in "do",
deplyremoves the uploadable afterwards.