部署deploy
deploy命令
deploy 命令是对函数资源进行部署的命令,即将本地在 Yaml文件 中声明的资源部署到线上。
deploy命令解析
当执行命令deploy -h/deploy --help时,可以获取帮助文档。
在该命令中,包括了两个子命令:deploy function命令和deploy trigger命令。
参数解析
|
参数全称 |
参数缩写 |
Yaml模式下是否必填 |
参数含义 |
|---|---|---|---|
|
type |
- |
选填 |
部署类型,可以选择code, config |
操作案例
fgs-deploy-test:
region: cn-north-4
function:
functionName: fgs-deploy-test
handler: index.handler
memorySize: 128
timeout: 30
runtime: Node.js14.18
package: default
codeType: zip
code:
codeUri: ./code
trigger:
triggerTypeCode: APIG
status: ACTIVE
eventData:
name: APIG_test
groupName: APIGroup_xxx
auth: IAM
protocol: HTTPS
timeout: 5000