turbodeploy
所属分类:FaaS/Serverless
开发工具:Shell
文件大小:5KB
下载次数:0
上传日期:2019-08-10 16:45:09
上 传 者:
sh-1993
说明: AWS Lambda的简单无服务器部署器
(A simple serverless deployer for AWS Lambda)
文件列表:
LICENSE (1057, 2019-08-11)
checkstack (1013, 2019-08-11)
package.json (484, 2019-08-11)
sample.yaml (1760, 2019-08-11)
turbodeploy (3189, 2019-08-11)
# turbodeploy
A simple serverless deployer for AWS Lambda
# Installation
1) Create an AWS Function with CloudFormation and CFTPL using the example in this repo (see caveats below)
2) Install this tool `curl "https://raw.githubusercontent.com/my-ideas/turbodeploy/master/turbodeploy" -o ~/bin/turbodeploy; chmod +x ~/bin/turbodeploy`
# Usage
`turbodeploy update [aws profile]`
Zip the current folder and upload a new version for this AWS Lambda function.
* stage is then stage name
* profile is the AWS profile to use (if empty use credentials defined in ENVS)
`turbodeploy package`
Build npde dependencies using an Amazon Linux container
# Caveats/configuration
Handler name must be `index.awslambda`
In the lambda repo, add a configuration file named `SERVERLESS`
```bash
MYI_FUNCTION_NAME=project-$stage-name
```
* MYI_FUNCTION_NAME := the name of the lamnbda function. You can use $STAGE to get the stage name
# Developing
Clone this repo and symlink it somewher in your $PATH.
`ln -s $PWD/turbodeploy ~/bin/turbodeploy`
近期下载者:
相关文件:
收藏者: