【问题标题】:Unable to create new function with Alibaba Cloud Function Compute Serverless Plugin无法使用阿里云函数计算 Serverless 插件创建新函数
【发布时间】:2018-11-28 14:30:10
【问题描述】:

我正在按照本指南:Aliyun Function Compute Serverless Plugin 尝试使用 无服务器框架阿里巴巴云函数计算 下使用新的 Node.js 无服务器功能创建新服务> 以及阿里云函数计算无服务器插件

但是,在我使用serverless deploy 命令之后,我只能在阿里云函数计算控制台中看到一个没有创建任何函数的新服务,这不是我所期望的。

我在部署过程中没有看到任何错误。

有人对此有任何经验和解决方案吗? 非常感谢!

serverless.yml如下图:

service: aliyun-nodejs

    provider:
      name: aliyun
      runtime: nodejs8
      credentials: <private>

    plugins:
      - serverless-aliyun-function-compute
    package:
      exclude:
        - package-lock.json
        - .gitignore
        - .git/**

    functions:
      hello:
        handler: index.hello
        events:
          - http:
              path: /foo
              method: get

【问题讨论】:

    标签: node.js serverless-framework alibaba-cloud serverless-plugins alibaba-cloud-function-compute


    【解决方案1】:

    您是否尝试过在serverless deploy 之前运行serverless config 并查看是否有效?在 Aliyun 插件的 repo 的问题部分,你可以找到这个线程: https://github.com/aliyun/serverless-aliyun-function-compute/issues/3

    【讨论】:

    • 我在项目根目录下运行 serverless config 命令后没有显示任何内容
    猜你喜欢
    • 1970-01-01
    • 2019-12-10
    • 2019-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-09
    • 2020-06-21
    • 1970-01-01
    相关资源
    最近更新 更多