APEX: 管理 Aws Lambda 的命令行工具

APEX: 管理 Aws Lambda 的命令行工具

1. Official Website

http://apex.run/
复制代码

2. Install

First Install
curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh

Upgrade your apex
apex upgrade

复制代码

3. Config

Here’s an example of ~/.aws/credentials:

[example]
aws_access_key_id = xxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxx

复制代码

Here’s an example of ~/.aws/config:

[profile example]
output = json
region = us-west-2
复制代码

4. Deploy

Deploy all functions
$ apex deploy

Deploy specific functions
$ apex deploy foo bar

Deploy all functions by environment(development)
$ apex deploy -e development

Deploy canary alias
$ apex deploy foo --alias canary

Deploy functions in a different project
$ apex deploy -C ~/dev/myapp

Alias all functions as "prod"
$ apex alias prod

Alias all "api_*" functions to "prod"
$ apex alias prod api_*

Alias all functions of version 5 to "prod"
$ apex alias -v v5 prod

Alias specific function to "stage"
$ apex alias stage myfunction

Alias specific function's version 10 to "stage"
$ apex alias -v v10 stage myfunction

Deploy alias and stage in the same time
$ apex deploy -e development -a development

复制代码
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值