检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
把项目文件和bootstrap文件打包成zip包。以koa框架为例: 父主题: Node.js
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index.zip
definition WorkflowCreateBody object 创建函数流的body体 表3 WorkflowCreateBody 参数 参数类型 描述 name String 函数流名称 最小长度:1 最大长度:64 description String 函数流描述 最小长度
虚拟私有云(VPC) 函数支持用户创建虚拟私有云(VPC)并访问自己VPC内的资源,同时支持通过SNAT方式绑定EIP访问外网。相关内容请参考虚拟私有云用户指南。
在“基础信息”页签下,更新流水线名称为pipeline-update-function-deploy,并单击“保存”流水线。 执行流水线 运行时参数配置releaseVersion为1.0.0,单击“执行”。 图11 运行时参数配置 图12 流水线 deploy脚本发布成功。
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
函数工程创建以后,可以得到以下目录,选中工程所有文件,打包命名为“fss_examples_nodejs.zip”。
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
多个文件名后缀使用“,”分隔, 如.jpg,.zip,.exe。 输入的文件名后缀总数不超过20个。 匹配类型为目录路径: 输入要求以“/”作为首字符。 多个目录路径使用“,”分隔,如/test/folder01,/test/folder02。 输入的目录路径总数不超过20个。
{ "name": "custom-container-http-example", "version": "1.0.0", "description": "An example of a custom container http function", "main
": "main.js", "scripts": {}, "keywords": [], "author": "", "license": "ISC", "dependencies": { "express": "^4.17.1" } } name
图2 下载SDK解压 配置依赖 在工程目录下创建lib目录,将zip中的Runtime2.0.5.jar和代码所需要的三方依赖包拷贝到该目录,并把该jar添加为工程依赖。
(注意:需要有个外网IP) 最后执行如下命令即可,更多的命令解释请参考https://github.com/winnfsd/winnfsd。
('obs_address') outputBucket = context.getUserData('obs_output_bucket') if obs_address is None: obs_address = '{obs_address_ip
以下图为例,运行时语言为“Node.js 10.16”,可以选择“在线编辑”、“Zip文件”、“OBS地址”三种方式进行代码源部署。 图2 部署代码源 当使用“OBS地址”方式进行代码源部署时,请确保创建函数选择的“区域”与创建OBS桶选择的“区域”一致。