不能更新自定义域名
wsw0108 opened this issue · comments
Shiwei Wang commented
通过在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/
Shiwei Wang commented
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
Shiwei Wang commented
close. 缩进导致的错误。。。