检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
后续每次冷启动,如果节点上没有镜像,都需要从SWR中拉取。 镜像类型支持公开和私有,具体详情请参考编辑镜像属性。 自定义容器镜像开放端口限定为8000。
POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index.zip
huaweicloud_fgs_function" "fgs_function" { name = "test_func_rf" app = "default" agency = "function-admin" description
函数工程创建以后,可以得到以下目录,选中工程所有文件,打包命名为“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
{ "name": "custom-container-http-example", "version": "1.0.0", "description": "An example of a custom container http function", "main
在“基础信息”页签下,更新流水线名称为pipeline-update-function-deploy,并单击“保存”流水线。 执行流水线 运行时参数配置releaseVersion为1.0.0,单击“执行”。 图11 运行时参数配置 图12 流水线 deploy脚本发布成功。
把项目文件和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
": "main.js", "scripts": {}, "keywords": [], "author": "", "license": "ISC", "dependencies": { "express": "^4.17.1" } } name
WinNFSd.exe -addr IP地址 F:\nfs /nfs IP地址为Windows系统的本机IP地址192.168.x.x,F:\nfs为nfs文件夹的实际路径。
('obs_address') outputBucket = context.getUserData('obs_output_bucket') if obs_address is None: obs_address = '{obs_address_ip
vpc:ports:get(查询端口) vpc:ports:create(创建端口) vpc:vpcs:get(查询VPC) vpc:subnets:get(查询子网) vpc:vips:delete(虚IP解绑VM) vpc:securityGroups:get(查询安全组列表或详情
图2 下载SDK解压 配置依赖 在工程目录下创建lib目录,将zip中的Runtime2.0.5.jar和代码所需要的三方依赖包拷贝到该目录,并把该jar添加为工程依赖。
功能应用类实践 表2 FunctionGraph功能应用类最佳实践 最佳实践 说明 使用FunctionGraph函数和CTS识别非法IP的登录登出操作 本章节介绍如何结合云审计服务CTS,配置获取云服务资源操作信息并对信息进行分析和处理的函数,再通过消息通知服务SMN推送告警短信和邮件
环境变量总大小超过限制(2K) 检查环境变量的总大小 400 FSS.1019 The description exceeds the maximum allowed limit (512 characters).
图3 打包文件 创建函数并上传上一步的zip包。 执行函数,函数执行结果分为三部分,分别为函数返回(由callback返回)、执行摘要、日志输出(由Console.WriteLine()方法输出)。 执行结果 执行结果由3部分组成:函数返回、执行摘要和日志。