检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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
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
Linux系统 Linux系统下可以使用以下命令生成zip包。 zip –rq vendor.zip vendor windows系统 用压缩软件将vendor目录压缩成zip文件即可。
Linux系统 Linux系统下可以使用以下命令生成zip包。 zip -rq mysql-node8.10.zip node_modules 即可生成最终需要的依赖包。 windows系统 用压缩软件将node_modules目录压缩成zip文件即可。
执行shell命令 # 构建函数部署包 cd helloworld zip helloworld_deploy.zip cam.yaml # 构建函数代码压缩包 cd code zip -rp helloworld.zip * 图1 执行shell命令 上传函数压缩包到OBS 图2
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
zip -rq pymysql.zip * 所生成的包即为最终需要的依赖包。
配置函数流的异常处理控制器组件 异常处理控制器组件用于控制函数执行失败后的下一步流程,当函数流里面的函数执行异常时,可以通过“异常处理”来处理执行失败的函数并可添加重试。函数执行失败可分为多种情况:函数执行异常;函数内部业务失败并在返回内容中添加了错误码,例如status,200代表成功
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
基本概念 函数 函数是处理事件的自定义代码。 事件源 事件源是发布事件的公有云服务或自定义应用程序。 同步调用 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。 异步调用 异步调用是指客户端不关注请求调用的结果,服务端收到请求后将请求排队
权限及授权项说明 如果您需要对您所拥有的FunctionGraph进行精细的权限管理,您可以使用统一身份认证服务(Identity and Access Management,简称IAM),如果公有云账号已经能满足您的要求,不需要创建独立的IAM用户,您可以跳过本章节,不影响您使用
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure
如果安装的依赖模块需要添加依赖库,请将依赖库归档到zip依赖包文件中,例如,添加.dll、.so、.a等依赖库。 使用Java编译型语言开发函数时,依赖包需要在本地编译。开发Java函数中如何添加依赖包请参见Java函数开发指南(使用IDEA工具普通Java项目)。
npm install --save 图2 依赖包执行安装 将新生成的“node_modules”子目录打包成zip文件,本案例命名为“nextjs-node-modules.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
准备 创建函数前,需要创建1个OBS桶,用来保存用户上传的图片。 OBS桶创建以后,需要创建“委托”,给FunctionGraph函数赋权,确保FunctionGraph函数能够访问到OBS资源。 创建OBS桶 上传图片的源桶和函数必须处于同一个区域下。 操作步骤 在服务控制台左侧导航栏