AWS CLI - 'ascii'编解码器无法对位置26中的字符u'\ xff'进行编码

时间:2018-02-28 13:03:15

标签: aws-cli amazon-route53

我有大量的route53记录,我必须移动并跟随https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html

我已经创建了txt文件并对其进行了更新,但是当我运行该命令时,我收到以下错误

PS C:\> aws route53 change-resource-record-sets --hosted-zone-id ZNEWZONE1245 --profile new_account --change-batch file://list-records-ZNEWZONE1245.json

'ascii' codec can't encode character u'\xff' in position 26: ordinal not in range(128)

这是list-records-ZNEWZONE1245.json

的内容
{
    "Comment": "Import domain.tld route53 sets",
    "Changes": [
        {
            "Action": "CREATE",
            "ResourceRecordSet":{
                "ResourceRecords": [
                    {
                        "Value": "192.0.2.4"
                    }
                ], 
                "Type": "A", 
                "Name": "domain.tld.", 
                "TTL": 300
            }
        },
        {
            "Action": "CREATE",
            "ResourceRecordSet":{
                "ResourceRecords": [
                    {
                        "Value": "5 ALT2.ASPMX.L.GOOGLE.COM"
                    }, 
                    {
                        "Value": "1 ASPMX.L.GOOGLE.COM"
                    }, 
                    {
                        "Value": "10 ALT4.ASPMX.L.GOOGLE.COM"
                    }, 
                    {
                        "Value": "10 ALT3.ASPMX.L.GOOGLE.COM"
                    }, 
                    {
                        "Value": "5 ALT1.ASPMX.L.GOOGLE.COM"
                    }
                ], 
            "Type": "MX", 
            "Name": "domain.tld.", 
            "TTL": 300
        }
    }
    ]
}

非常感谢任何建议。

0 个答案:

没有答案