0

我已经实现了这个,但它说无效的请求。它可能完全错误。 我要为特定的国家我们如何通过AWS创建地理位置:cloudfromation模板?

"Geolocation": { 
    "Type": "AWS::Route53::RecordSet", 
    "Properties": { 
    "HostedZoneName": { 
     "Ref": "Route53Domain" 
    }, 
    "Name": { 
     "Fn::Join": [ 
     "$", 
     [ 
      { 
      "Ref": "javadns" 
      }, 
      { 
      "Ref": "Route53Domain" 
      } 
     ] 
     ] 
    }, 
    "Type": "CNAME", 
    "TTL": "60", 
    "GeoLocation": {"CountryCode" : "*"}, 
    "ResourceRecords": [ 
     { "Fn::Join" : [".", ["geoip", { "Ref" : "javadns" }]]} 
    ] 
    } 
}, 

回答

2

创建地理位置创建您必须指定一个SetIdentifier property in CloudFormation广告位置记录。

我看到您在CloudFormation中缺少该属性,可能这就是为什么它会抛出错误。

此处还有Route53支持的代码国家标识符,您不能在该参数中指定通配符,国家和洲代码由两个字母组成。

Documentation here.

相关问题