简体   繁体   English

尝试使用 awscli 和 powershell 更新 route53 时出错

[英]Error trying update route53 with awscli and powershell

I am very new at awscli and programming in general.我对 awscli 和一般编程非常陌生。 I am tyring to update a route53 record when i start up an instance using cmd and powershell. However, i keep getting this error when running it:当我使用 cmd 和 powershell 启动实例时,我很想更新 route53 记录。但是,我在运行它时不断收到此错误:

Error parsing parameter '--change-batch': Expected: '=', received: 'ÿ' for input: ÿþ{解析参数“--change-batch”时出错:预期:“=”,收到:“ÿ”输入:ÿþ{

The commmand i am running is: aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json我正在运行的命令是:aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json

I have tried just about all combinations like: aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch='C:\temp\config.json'我已经尝试了几乎所有组合,例如:aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch='C:\temp\config.json'

aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json

aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=C:\temp\config.json aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=C:\temp\config.json

But nothing seems to work.但似乎没有任何效果。 If i put the config.json file in my home directory on a ubuntu vm and run the same command it works, so i am pretty sure my problem is with the --change-batch stuff.如果我将 config.json 文件放在 ubuntu 虚拟机上的主目录中并运行相同的命令,它会起作用,所以我很确定我的问题出在 --change-batch 上。

Any help would be very much appropriated as i have been working on this for a couple of days.任何帮助都会非常合适,因为我已经为此工作了几天。

I keep getting this when try to run it:尝试运行它时我不断得到这个:

Error parsing parameter '--change-batch': Expected: '=', received: 'ÿ' for input: ÿþ{解析参数“--change-batch”时出错:预期:“=”,收到:“ÿ”输入:ÿþ{

$ aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch file://C:\temp\config.json

The parameters change-batch doesn't accept value with = .参数change-batch不接受带有=的值。 The above command should work for you.上面的命令应该适合你。 Ref: Route53 - Change Resource Record Set参考: Route53 - 更改资源记录集

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM