所以,我有一个模板来设置基于位置的DNS路由,并且它正在工作,但我找不到设置默认地理位置的方法,就像您可以通过AWS控制台上的Route53 UI一样。
任何人都知道? 这是我的片段:
"GeoServerDNSRecordSet" : { "Type" : "AWS::Route53::RecordSetGroup", "Properties" : { "HostedZoneName" : { "Fn::Join" : ["", [{ "Ref" : "BaseDomain" }, "."]]}, "Comment" : "Weighted record set for GeoServer", "RecordSets" : [ { "Name" : { "Fn::Join" : ["", ["wms.", { "Ref" : "BaseDomain" }, "."]]}, "Type" : "CNAME", "HealthCheckId" : { "Ref" : "GeoserverEUWest1HealthCheck" }, "TTL" : "900", "SetIdentifier" : "GeoServer DNS eu-west-1 DEFAULT", "GeoLocation": {"ContinentCode" : "EU"}, "ResourceRecords" : [ { "Fn::Join" : ["", ["wms.eu-west-1.", { "Ref" : "BaseDomain" }]]} ] },{ "Name" : { "Fn::Join" : ["", ["wms.", { "Ref" : "BaseDomain" }, "."]]}, "Type" : "CNAME", "HealthCheckId" : { "Ref" : "GeoserverAPSoutheast2HealthCheck" }, "TTL" : "900", "SetIdentifier" : "GeoServer DNS ap-southeast-2 Oceania", "GeoLocation": {"ContinentCode" : "OC"}, "ResourceRecords" : [ { "Fn::Join" : ["", ["wms.ap-southeast-2.", { "Ref" : "BaseDomain" }]]} ] } ] } }
我想要的是欧盟logging集默认。
尝试这个?
"GeoLocation": {"CountryCode" : "*"}
我们build议您创build一个地理位置资源logging集,CountryCode的值为*,以覆盖您尚未创build资源logging集的地理位置,并覆盖Amazon Route 53无法识别位置的IP地址。