2
我正在尝试通过Amazon CLI为DNS-01验证在Route53中创建TXT记录。看起来我非常接近但可能遇到CLI问题(或者我看不到的格式问题)。正如你所看到的,它的抱怨,应该在引号中的价值,但确实是在引号已经...亚马逊CLI,路由53,TXT错误
命令行:
aws route53 change-resource-record-sets --hosted-zone-id ID_HERE --change-batch file://c:\dev\test1.json
JSON文件:
{
"Changes": [
{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": "DOMAIN_NAME_HERE",
"Type": "TXT",
"TTL": 60,
"ResourceRecords": [
{
"Value": "test"
}
]
}
}
]
}
错误:
An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: Invalid Resource Record: FATAL problem: InvalidCharacterString (Value should be enclosed in quotation marks) encountered with 'test'
现货。谢谢!有趣的是,他们不希望所有的字符串参数都与这样的转义引号一起提供。 – BRass
这是因为这是一个'TXT'记录,[它是一个带引号的字符串,根据定义](https://tools.ietf.org/html/rfc1464)...所以Route 53希望看到记录中的实际引号。 –
*“TXT记录包含空格分隔的双引号字符串列表。”* - http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat –