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.

相關問題