gpt4 book ai didi

amazon-web-services - 我们如何通过 AWS 创建地理定位 :cloudfromation template?

转载 作者:行者123 更新时间:2023-12-03 07:32:36 25 4
gpt4 key购买 nike

我已经实现了这个,但它说请求无效。这可能完全错误。我想为特定国家/地区创建地理位置

"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" }]]}
]
}
},

最佳答案

要创建地理位置记录,您必须指定SetIdentifier property in CloudFormation .

我发现您在 CloudFormation 中缺少该属性,这可能就是它向您抛出错误的原因。

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

Documentation here.

关于amazon-web-services - 我们如何通过 AWS 创建地理定位 :cloudfromation template?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43881687/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com