开发者社区 > 云原生 > Serverless > 正文

f4b301af27151659509078064 能帮我看看我更新代码是什么原因失败吗?

提问57.png

f4b301af27151659509078064 能帮我看看我更新代码是什么原因失败吗?

这是我执行的命令: s cli fc-api updateFunction --region cn-qingdao --access default --serviceName dev-HexExeStructure --functionName http-test --description 's build' --code ./tianyi-hex-exercises-structure.zip --customContainerConfig '123' --handler ocr_exercises_structure.handler --runtime python3 ----timeout 60

展开
收起
云上静思 2022-08-03 17:16:46 606 0
1 条回答
写回答
取消 提交回答
  • 回答10.png

    这个是 fc-api。这个仓库有段时间没有看过了 很多新能力都不支持,建议后面使用 s cli fc api 使用参考:

    s cli fc api GetProvisionConfig --region cn-shanghai --path '{"serviceName":"gyx_shanghai","functionName":"test123456","qualifier":"GYX"}'

    s cli fc api ListTriggers --region cn-hangzhou --path '{"serviceName":"hello-world-service-wss","functionName":"start-fc-event-nodejs14"}' --query '{"limit":1}'

    s cli fc api UpdateService --path '{"serviceName": "service_name"}' --body '{"vpcConfig" : { "securityGroupId" : "sg-", "vSwitchIds" : [ "vsw-*****" ],"vpcId" : "vpc-"}}'

    此答案来自钉钉群“Serverless 开发者技术学习群”

    2022-08-03 19:28:42
    赞同 展开评论 打赏
问答地址:

快速交付实现商业价值。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载