deploy
deploy Commands
deploy commands are used to deploy the function resources declared in a YAML file (see YAML File) to the cloud.
deploy Command Parsing
You can run deploy -h or deploy --help to view the documentation.
This command contains two subcommands: deploy function and deploy trigger.
Parameter Parsing
|
Parameter Name |
Abbreviation |
Required in YAML |
Description |
|---|---|---|---|
|
type |
- |
No |
Deployment type, which can be code or config. |
Examples
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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot