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

体验函数技术 Serverless服务,在最后这里 执行 fun deploy -y 命令报错。

使用Funcraft开发函数计算HelloWorld应用 经过检查提供的信息, 在fun config 步骤时 需要提供Aliyun Account ID

而界面信息左侧提供的子账号相关信息,没有这个参数,只有子用户名称, 但是填完子账号名称之后,后续会报错。这里需要提供子账号Account ID

[root@iZuf664jzdqku8a15z0xlqZ demo]# fun config
? Aliyun Account ID (u-nwz0d1mk@187xxxxxxxxxxxx)

报错信息如下:

[root@iZuf664jzdqku8a15z0xlqZ demo]# fun deploy -y
using template: template.yml
using region: cn-shanghai
using accountId: ***********1311
using accessKeyId: ***********JuvZ
using timeout: 10

Collecting your services information, in order to caculate devlopment changes...

Resources Changes(Beta version! Only FC resources changes will be displayed):

┌─────────────┬──────────────────────────────┬────────┬─────────────┐
│ Resource    │ ResourceType                 │ Action │ Property    │
├─────────────┼──────────────────────────────┼────────┼─────────────┤
│ demo        │ Aliyun::Serverless::Service  │ Add    │ Description │
├─────────────┼──────────────────────────────┼────────┼─────────────┤
│             │                              │        │ Handler     │
│             │                              │        ├─────────────┤
│ demo        │ Aliyun::Serverless::Function │ Add    │ Runtime     │
│             │                              │        ├─────────────┤
│             │                              │        │ CodeUri     │
├─────────────┼──────────────────────────────┼────────┼─────────────┤
│             │                              │        │ AuthType    │
│ httpTrigger │ HTTP                         │ Add    ├─────────────┤
│             │                              │        │ Methods     │
└─────────────┴──────────────────────────────┴────────┴─────────────┘

Waiting for service demo to be deployed...

The accountId you entered is incorrect. You can only use the primary account id, whether or not you use a sub-account or a primary account ak. You can get primary acc                                                 ount ID on this page https://account.console.aliyun.com/#/secure .

GET /services/demo failed with 400. requestid: undefined, message: undefined.
[root@iZuf664jzdqku8a15z0xlqZ demo]#

展开
收起
123qqqqqqadada 2020-07-31 17:40:52 35476 0
3 条回答
写回答
取消 提交回答
  • +0

    2021-07-20 09:53:37
    赞同 展开评论 打赏
  • 静心沉淀

    image.png

    2020-09-17 15:09:34
    赞同 展开评论 打赏
  • 亲,你想解决什么问题,描述清楚

    2020-07-31 17:47:27
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Serverless 引领云上研发新范式 立即下载
    All in Serverless 阿里云核心产品全面升级 立即下载
    AIGC 浪潮之上,森马的 Serverless 实践之旅 立即下载