alibaba / funcraft

(have) Fun with Serverless(API Gateway & Function Compute)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

不能更新自定义域名

wsw0108 opened this issue · comments

通过在template.yml里设置自定义域名。

最初是用的DomainName: Auto,现在想改为自己设置绑定的CNAME,如DomainName: api.example.com

fun deplly时,返回如下错误:
Update to properties DomainName of Domain (ALIYUN::FC::CustomDomain) is not supported., URL: http://ros.aliyuncs.com/

ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Domain:
    Type: 'Aliyun::Serverless::CustomDomain'
    Properties:
      DomainName: Auto
      Protocol: HTTP
      RouteConfig:
        Routes:
          "/*":
            ServiceName: s1
            FunctionName: f1

close. 缩进导致的错误。。。